tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koes, Derrick" <>
Subject RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
Date Thu, 24 Jul 2003 18:26:28 GMT

You must rebuild the service with the new options.

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

Replace $CATALINA_HOME$ and $JAVA_HOME$ with the appropriate values.
Change -Xmx and -Xms as appropriate.
We use instsrv with the REMOVE command to remove the old service before
running the above, or rename the service.  This is easier than re-installing

-----Original Message-----
From: Paul [] 
Sent: Thursday, July 24, 2003 1:53 PM
Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k

after assigning the following environment variables the java runtime
options as follows:

eg: JAVA_OPTS=-Xmx128m -Xms128m

tried with:

amount of RAM memory used stayed aprox the same.  Though i was expecting
more memory to be used because of the extra memory that should have been
allotted to java instance for Tomcat.  Consequently, i am assuming that
options were not applied by simply setting these environment variables,
at least when Tomcat is started as a service.

Where and how are java runtime options to be specified with Tomcat 4.1
(JDK 1.4.2) when it is started as a win2k service?

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:
For additional commands, e-mail:

View raw message