tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reis, Tom" <reis...@cdnet.cod.edu>
Subject RE: How to set up JAVA_OPTS while running tomcat as a service
Date Fri, 02 Apr 2004 21:10:31 GMT
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 <paul.mansfield@psineteurope.com>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: Tomcat Users List <tomcat-user@jakarta.apache.org>
>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


Mime
View raw message