> From: Kevin Jenkins [mailto:rak...@jenkinssoftware.com] 
> Subject: Re: Tomcat how to set -Xms and -Xmx

> I found the answer. In catilina.bat change

That's the wrong answer.

> Such a common operation should not be so obscure and difficult to figure out

It's not, but you're doing it the hard way, possibly due to some bad advice 
earlier.  Do not modify startup.bat or catalina.bat; all you need to do is 
create a setenv.bat file in Tomcat's bin directory, and put the following in it:

set CATALINA_OPTS=-Xms2560m -Xmx2560m

If setenv.bat exists, it will be called automatically by the startup.bat 
script.  You should use CATALINA_OPTS here, since JAVA_OPTS applies to both the 
startup and shutdown, and you don't need it on stop Tomcat.

Note that the tomcat7w.exe executable is used only when running Tomcat as a 
service, not when launching it from batch scripts.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to