tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikolaj Rydzewski <>
Subject Re: Setting JVM Parameters in Windows Service for Tomcat7
Date Thu, 20 Sep 2012 14:16:58 GMT
On 20.09.2012 15:59, Patrick Flaherty wrote:

> Have you tried this and gotten it to work ? My check to see if it
> took  has been to open tomcatw.exe and check the values there.
> No matter what I've tried I cannot get it to take.

Yes, it works for me in both ways (either via CLI or GUI).
In fact I use ant script to modify service parameters (please forgive 
broken lines):

     <target name="update-tomcat-service">
         <exec executable="${root}\\bin\\tomcat6.exe" 
             <arg line="//US//Tomcat6 --Startup=auto --JvmMs 
${tomcat.memory.size} --JvmMx ${tomcat.memory.size} --StartPath 
&quot;${root}&quot; --JvmOptions;-verbose:gc;-XX:-DisableExplicitGC;-XX:+PrintGCTimeStamps;-XX:+PrintGCDetails;-Xloggc:logs\gc.log;-XX:+HeapDumpOnOutOfMemoryError;-XX:HeapDumpPath=logs;-XX:+UseConcMarkSweepGC;-XX:+UseParNewGC;-XX:+CMSClassUnloadingEnabled;-XX:MaxPermSize=256m"/>

Mikolaj Rydzewski <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message