Setting java heap size
Apr 06
Tomcat
Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat. For example,
set CATALINA_OPTS=-Xms512m -Xmx512m (Windows, no "" around the value)
JBoss
Stop JBoss server, edit $JBOSS_HOME/bin/run.conf, and then restart JBoss server.
JAVA_OPTS="-server -Xms128m -Xmx128m"
Eclipse
You have 2 options:
1. Edit eclipse-home/eclipse.ini to be something like the following and restart Eclipse.
-vmargs-Xms64m-Xmx256m
2. Run eclipse command with additional options at the very end. Anything after -vmargs will be treated as JVM options and passed directly to the JVM. JVM options specified in the command line this way will always override those in eclipse.ini.
eclipse -vmargs -Xms64m -Xmx256m
RSS