Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 80785 invoked from network); 3 Apr 2004 21:23:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Apr 2004 21:23:21 -0000 Received: (qmail 55377 invoked by uid 500); 3 Apr 2004 21:22:49 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 55358 invoked by uid 500); 3 Apr 2004 21:22:49 -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 55343 invoked from network); 3 Apr 2004 21:22:48 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 3 Apr 2004 21:22:48 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B9sbN-0008Qr-00 for ; Sat, 03 Apr 2004 23:22:53 +0200 Received: from 4.43.180.113 ([4.43.180.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Apr 2004 23:22:53 +0200 Received: from wbarker by 4.43.180.113 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Apr 2004 23:22:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: "Bill Barker" Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Sat, 3 Apr 2004 13:36:04 -0800 Lines: 123 Message-ID: References: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 4.43.180.113 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat sys-tray icon), as well as the 'service.bat' file that you can customize for your settings. There should never be a reason to edit the registry settings directly. However, for those people that don't want to heed the warning :), the settings are located at: HKLM\Software\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters. "Antoni Unkovich" wrote in message news:E1B9Y4k-0005Go-00@deer.gmane.org... > Hi > I'm keen to try this with tomcat 5.0.19. > Please can you supply a little more detail regarding the registry settings? > Thanks in advance > Antoni > > > > -----Original Message----- > From: Mandy Joss [mailto:tomcat21117@hotmail.com] > Sent: Saturday, 3 April 2004 9:57 a.m. > To: tomcat-user@jakarta.apache.org > Subject: RE: How to set up JAVA_OPTS while running tomcat as a service > > > Tom Reis, > > Thanks a lot. It worked. You were awesome. I wish I could give > you some Duke dollars :) Thanks again, > > Mandy > > >From: "Reis, Tom" > >Reply-To: "Tomcat Users List" > >To: "'Tomcat Users List'" > >Subject: RE: How to set up JAVA_OPTS while running tomcat as a service > >Date: Fri, 2 Apr 2004 15:10:31 -0600 > > > >You can set the options for services in the registry. > >[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat > >4.1\Parameters set the JVM Option Count to the number of parameters you > >are setting (it is probably already set to 2) and then add JVM Option > >Number # strings for each new option. > >the setting for maximum heap is -Xmx###M, minimum is -Xms###M > > > >Let me know if this works. I have done it to 1 server so far and it > >seems to works, but I can't tell how much memory is being used. > > > >-----Original Message----- > >From: Mandy Joss [mailto:tomcat21117@hotmail.com] > >Sent: Friday, April 02, 2004 2:58 PM > >To: tomcat-user@jakarta.apache.org > >Subject: Re: How to set up JAVA_OPTS while running tomcat as a service > > > > > >But the problem is when it runs as a windows service the tomcat.exe is > >called directly. if I put any echo message in catalina.bat file I don't > >see my message anywhere. I don't think it goes into catalina.bat at all > >when runniing as an service. > > > > > > >From: Paul Mansfield > > >Reply-To: "Tomcat Users List" > > >To: Tomcat Users List > > >Subject: Re: How to set up JAVA_OPTS while running tomcat as a > > >service > > >Date: Fri, 02 Apr 2004 18:23:40 +0100 > > > > >I put the settings into the catalina.sh file, e.g. > > > > > > > > > > > # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ # > > >--------------------------------------------------------------------- > > >------ > >-- > > > > > > > > JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so > > > > >On Fri, 2004-04-02 at 17:54, Mandy Joss wrote: > > > > I am running Tomcat 4.1.24 as service but under stress I get > > > > OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server > > >-Xms256m > > > > -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where > > >should I > > > > specify JAVA_OPTS so that Tomcat running as service will look at them. > > > > > > > > > > > > > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > >_________________________________________________________________ > >Check out MSN PC Safety & Security to help ensure your PC is protected > >and safe. http://specials.msn.com/msn/security.asp > > > > > >--------------------------------------------------------------------- > >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 > > > > _________________________________________________________________ > MSN Toolbar provides one-click access to Hotmail from any Web page - FREE > download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ > > > --------------------------------------------------------------------- > 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