tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul" <>
Subject Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
Date Fri, 25 Jul 2003 14:01:01 GMT
the script given below worked for me, as a .bat file, where the environment
variables were substituted with literal directory paths, on a win2k
(professional) os (sp4), and jdk 1.4.2.
  note: the tomcat.exe file specified in the script below only gets copied
to the /bin directory of Tomcat if specify during install to install Tomcat
as a service.  I copied this file into /bin directory from first install,
then ran .bat file.

i am thankful for the help.

----- Original Message ----- 
From: "Koes, Derrick" <>
To: "'Tomcat Users List'" <>
Sent: Thursday, July 24, 2003 2:26 PM
Subject: RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as
Win2k service

> 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
> -Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
> -Djava.endorsed.dirs="$CATALINA_HOME$\common\endorsed"
> -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"
> 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
> tomcat.
> -----Original Message-----
> From: Paul []
> Sent: Thursday, July 24, 2003 1:53 PM
> To:
> Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as
> service
> 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
> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message