tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Schmidt <rschm...@newpos.com>
Subject Re: heap size params on linux
Date Mon, 03 Jan 2005 20:03:06 GMT
I think that any option you want to pass to the jvm can be placed in 
JAVA_OPTS, like this:

set JAVA_OPTS = "-Xmx1536m -Xms1536m -server"

I do that and it works fine.

Rodrigo




Stephen Charles Huey wrote:

>I see that JAVA_OPTS is mentioned in there quite a few times, so where
>exactly can I put set JAVA_OPTS=-Xmx1536m?  Also, do I need to do both
>the initial and max in one line?
>
>E.g.  set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the
>line?)
>
>Does the -server option go with JAVA_OPTS as well?
>
>Thanks...
>
>
>----- Original message -----
>From: "Ben Souther" <bsouther@fwdco.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Date: Mon, 03 Jan 2005 14:41:07 -0500
>Subject: Re: heap size params on linux
>
>I do it from catalina.sh 
>
>>>From the header comments.....
>22 #   JAVA_OPTS (Optional) Java runtime options used when the "start",
>23 #                   "stop", or "run" command is executed.
>24 #
>
>
>
>
>On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote:
>  
>
>>Our script for installing Tomcat as a service on Windows is down below. 
>>We're moving to Linux, so I'm wondering where we specify the heap size
>>parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
>>place be in the startup.sh file?  Thanks!
>>
>>
>>D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
>>"C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
>>-Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
>>-Dcatalina.home="D:\Tomcat"
>>-Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
>>org.apache.catalina.startup.BootstrapService -params start -stop
>>org.apache.catalina.startup.BootstrapService -params stop -out
>>"D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
>>pause
>>
>>---------------------------------------------------------------------
>>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
>
>
>---------------------------------------------------------------------
>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