Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 61289 invoked from network); 25 Jul 2003 13:58:56 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 25 Jul 2003 13:58:56 -0000 Received: (qmail 23824 invoked by uid 97); 25 Jul 2003 14:01:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 23817 invoked from network); 25 Jul 2003 14:01:29 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 25 Jul 2003 14:01:29 -0000 Received: (qmail 59739 invoked by uid 500); 25 Jul 2003 13:58:38 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 59720 invoked from network); 25 Jul 2003 13:58:38 -0000 Received: from tomts25.bellnexxia.net (HELO tomts25-srv.bellnexxia.net) (209.226.175.188) by daedalus.apache.org with SMTP; 25 Jul 2003 13:58:38 -0000 Received: from plwkstn ([65.92.52.242]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030725135838.RCRD20149.tomts25-srv.bellnexxia.net@plwkstn> for ; Fri, 25 Jul 2003 09:58:38 -0400 Message-ID: <003001c352b5$2e87b630$6401a8c0@plwkstn> From: "Paul" To: "Tomcat Users List" References: <90BB627CA578DC479862B41DBD542991046F501D@andsrv30.smith-nephew.com> Subject: Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service Date: Fri, 25 Jul 2003 10:01:01 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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" 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 re-installing > tomcat. > > -----Original Message----- > From: Paul [mailto:paul@msci.ca] > Sent: Thursday, July 24, 2003 1:53 PM > To: tomcat-user@jakarta.apache.org > 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? > > -paul@msci.ca > > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org