Or you can edit the registry, it is not that bad. Search for your
service name...

>>> [EMAIL PROTECTED] 07/24/03 12:26 PM >>>

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]

Reply via email to