Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
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. -paul - Original Message - From: "Koes, Derrick" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> 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 re-installing > tomcat. > > -Original Message- > From: Paul [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 1:53 PM > To: [EMAIL PROTECTED] > Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k > service > > after assigning the following environment variables the java runtime > options as follows: > > eg: JAVA_OPTS=-Xmx128m -Xms128m > > tried with: > CATALINA_OPTS > JAVA_OPTS > > 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? > > [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
Would this tool help? I also saw a wiki page for tomcat on setting memory in the registry.. http://web.bvu.edu/staff/david/tcservcfg/ I guess my question is what it sthe right way to set options like this when running as an Win2k service? Eric Pugh -Original Message- From: Simon Pabst To: Tomcat Users List Sent: 7/24/03 4:59 PM Subject: Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service The 128m won't get used/allocated on Tomcat/Java start already (AFAIK), only when you do a lot of memory intensive things (you could use a webserver stress tool to increase the load on the server so memory grows) At 13:52 24.07.2003 -0400, you wrote: >after assigning the following environment variables the java runtime >options as follows: > >eg: JAVA_OPTS=-Xmx128m -Xms128m > >tried with: >CATALINA_OPTS >JAVA_OPTS > >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? > >[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
The 128m won't get used/allocated on Tomcat/Java start already (AFAIK), only when you do a lot of memory intensive things (you could use a webserver stress tool to increase the load on the server so memory grows) At 13:52 24.07.2003 -0400, you wrote: after assigning the following environment variables the java runtime options as follows: eg: JAVA_OPTS=-Xmx128m -Xms128m tried with: CATALINA_OPTS JAVA_OPTS 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? [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 re-installing tomcat. -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 1:53 PM To: [EMAIL PROTECTED] Subject: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service after assigning the following environment variables the java runtime options as follows: eg: JAVA_OPTS=-Xmx128m -Xms128m tried with: CATALINA_OPTS JAVA_OPTS 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? [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
Paul, this tool will do the job when running TC as Windows-Service: http://web.bvu.edu/staff/david/tcservcfg/ HTH, Yann after assigning the following environment variables the java runtime options as follows: eg: JAVA_OPTS=-Xmx128m -Xms128m tried with: CATALINA_OPTS JAVA_OPTS 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? [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service
after assigning the following environment variables the java runtime options as follows: eg: JAVA_OPTS=-Xmx128m -Xms128m tried with: CATALINA_OPTS JAVA_OPTS 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? [EMAIL PROTECTED]