tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omairkhawaja <omairkhaw...@gmail.com>
Subject Re: Thread dump on Tomcat 5.5.20 running as a service
Date Fri, 12 Jun 2009 15:06:19 GMT

Just to add: I'm using JDK 1.5

Thank you for your very prompt replies... There's one additional question
that I had ... I was initially running tomcat with the -Xrs JVM flag... but
if I try to take a thread dump, the Tomcat process crashes and I get
nothing... if I remove the VM flag, I can take a thread dump successfully
and the app continues to run... 

This makes sense given that according 
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#options Sun's
documentation  
Ctrl + Break thread dumps are not available with the -Xrs flag turned on...
and given what's mentioned 
http://www.latenighthacking.com/projects/2003/sendSignal/ here  and 
http://www.adaptj.com/main/tracehowtos#ht0 here  the process exiting on a
Ctrl + Break is the expected behavior when -Xrs is specified as a JVM
option.

My question is: 
- what are the implications of removing the -Xrs flag.. 
- why would the flag be enabled for a webapp running as a service?  What
benefits if any does it provide?

Thanks,

Omair


Rainer Jung-3 wrote:
> 
> On 12.06.2009 15:00, Mark Thomas wrote:
>> omairkhawaja wrote:
>>> My question is though: is it guaranteed that the version of procrun that
>>> ships with tomcat6 is completely compatible with tomcat 5.5.20?
>> 
>> Yes. The same binaries work with all Tomcat versions. We just change the
>> file name to reflect the service name.
> 
> Even more precisely: if you register your Tomcat service under the name
> XXX and rename the tomcat5w.exe / tomcat6w.exe to XXXw.exe, then it will
> automatically manage that service. So the reason for the names
> tomcat5w.exe resp. tomcat6w.exe is, that the default service names
> Tomcat registers are tomcat5 resp. tomcat6.
> 
> Regards,
> 
> Rainer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Thread-dump-on-Tomcat-5.5.20-running-as-a-service-tp23998153p24000748.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message