Hello all,

 

I read the documentation on the Tomcat6 site and I have attempted to modify
the max jvm memory settings when tomcat starts up by modifying Catalina.bat,
but it *appears* to have no effect.

 

Here is a summary of the situation and what I have done.

 

I am using Tomcat6 stable release, WinXP, java 1.6

I am running tomcat from zip distribution and not from an installed windows
service.  I am using the startup/shutdown .bat files to start/stop my tomcat
instance 

I have run some test code in a simple web service inside of tomcat to
determine the max memory settings for the JVM that tomcat is using.

 

Runtime rt = Runtime.getRuntime();

return rt.maxMemory();

 

the value that gets returned : 66650112


I shutdown tomcat, and modified Catalina.bat with the following in the
JAVA_OPTS section(I included the surrounding remarks for context)

 

rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",

rem                   "stop", or "run" command is executed

set JAVA_OPTS = -Xms512m -Xmx512m

 

I then restarted tomcat, ran my service call above and it still returns the
same value for maxmemory from within my tomcat webservice.

 

>From reading the Tomcat Docs/ FAQ, and Googling I think that I am setting
what I need to set(Catalina.bat), but it seems to have no effect.

 

What resource am I not taking advantage of with this information, or what am
I missing to set the max memory usage in the JVM when Tomcat starts up?

 

Thank you for your time in reading this,

 

Chris

Reply via email to