You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Koes, Derrick" <De...@smith-nephew.com> on 2003/05/21 17:12:05 UTC

RE: Modifying JVM Memory Limits from Tomcat

catalina.sh or catalina.bat has an environment variable JAVA_OPTS which can
be modified to accept memory parameters.

If running as a Windows Service you need to modify registry or rebuild the
service with the desired memory settings.

Example:

"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log"


-----Original Message-----
From: Nicholas Camilleri [mailto:camin001@keyworld.net] 
Sent: Wednesday, May 21, 2003 8:07 PM
To: Tomcat Users List
Subject: Modifying JVM Memory Limits from Tomcat


Does anybody know how to modify the memory limits for tomcat-Xms and -Xmx

Is there any XML file such as server.xml that contains these variables ..?

Thanks
Nick.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org