Setting JVM options for Tomcat
* Windows running Tomcat 5 and later : Go to the "Apache Tomcat
5.0" folder in the Start Menu. Start the "Configure Tomcat
application".
Note: the configuration can only be started when Tomcat is not
running.
Select the "Java VM" tab in the configuration dialog. You will
see some pre-defined lines in the "Java Options" test box.
Append your Java options at the bottom of the option list. For
example, to set server mode and allow 512MB of heap memory,
append the following:
-server
-Xmx400m
* Windows running Tomcat 4.1 or earlier : place the Java options
into the CATALINA_OPTS environment variable. To do this, run
Control Panel / System, select Environment Variables and create
the CATALINA_OPTS variable, and set the desired option, for
example "-server -Xmx400m".
* Linux : place the Java options into the CATALINA_OPTS
environment variable. For example: "-server -Xmx400m".
THANKS TO MARK :)
Show replies by date