tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Setting JVM Parameters in Windows Service for Tomcat7
Date Sat, 22 Sep 2012 19:36:57 GMT
Patrick Flaherty wrote:
> Hi Mikolaj,
> 
> Is this a Windows platform ?

:-) If you manage to run tomcat.exe on a platform other than Windows, let us know.
It would greatly simplify the Tomcat releases.

> 
> -Pat
> 
> On Sep 20, 2012, at 10:16 AM, Mikolaj Rydzewski wrote:
> 
>> 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" dir="${root}\\bin">
>>            <arg line="//US//Tomcat6 --Startup=auto --JvmMs 
>> ${tomcat.memory.size} --JvmMx ${tomcat.memory.size} --StartPath 
>> &quot;${root}&quot; --JvmOptions 
>> -Dcom.sun.management.jmxremote;-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"/>

>>
>>        </exec>
>>    </target>
>>
>>
>> -- 
>> Mikolaj Rydzewski <miki@ceti.pl>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


Mime
View raw message