You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Lacson <pl...@gmail.com> on 2005/04/22 22:52:37 UTC

VM thread dump from windows service

If I run tomcat as a windows service, what is the best way to get a VM
thread dump?  From a command window it's pretty easy with the
Control-Break command.. what are my options for doing the equivalent
from a running tomcat windows service?

Thanks,
Patrick

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


Re: VM thread dump from windows service

Posted by Peter Rossbach <pr...@objektpark.de>.
Hey,

I am using the Java Service Wrapper from 
http://wrapper.tanukisoftware.org/doc/english/introduction.html.
The Service Wrapper have a JMX Mbean that have a stack dump operation.
http://wrapper.tanukisoftware.org/doc/english/jmx.html

Send me a direct mail to get a LifecycleListener that register the Mbean

Peter



Patrick Lacson schrieb:

>Spoke too soon.. :( 
>
>Our tomcat is installed using the tomcat.exe service installer that
>ships with the tomcat 4.1.x series.  This "Stack Trace" tool cannot do
>a thread dump on the process id of tomcat.exe
>
>-Patrick
>
>
>On 4/25/05, Patrick Lacson <pl...@gmail.com> wrote:
>  
>
>>perfect.  this works nicely!
>>
>>thanks,
>>patrick
>>
>>
>>On 4/22/05, Anoop kumar V <an...@gmail.com> wrote:
>>    
>>
>>>Patrick,
>>>
>>>I am not sure if this will help you but it is worth checking out Stack
>>>trace at the following link:
>>>
>>>http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
>>>
>>>let me know if it helped..
>>>-Anoop
>>>
>>>On 4/22/05, Patrick Lacson <pl...@gmail.com> wrote:
>>>      
>>>
>>>>If I run tomcat as a windows service, what is the best way to get a VM
>>>>thread dump?  From a command window it's pretty easy with the
>>>>Control-Break command.. what are my options for doing the equivalent
>>>>from a running tomcat windows service?
>>>>
>>>>Thanks,
>>>>Patrick
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>Thanks and best regards,
>>>Anoop
>>>
>>>      
>>>
>>--
>>Patrick
>>
>>    
>>
>
>
>  
>




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


Re: VM thread dump from windows service

Posted by Patrick Lacson <pl...@gmail.com>.
Spoke too soon.. :( 

Our tomcat is installed using the tomcat.exe service installer that
ships with the tomcat 4.1.x series.  This "Stack Trace" tool cannot do
a thread dump on the process id of tomcat.exe

-Patrick


On 4/25/05, Patrick Lacson <pl...@gmail.com> wrote:
> perfect.  this works nicely!
> 
> thanks,
> patrick
> 
> 
> On 4/22/05, Anoop kumar V <an...@gmail.com> wrote:
> > Patrick,
> >
> > I am not sure if this will help you but it is worth checking out Stack
> > trace at the following link:
> >
> > http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> >
> > let me know if it helped..
> > -Anoop
> >
> > On 4/22/05, Patrick Lacson <pl...@gmail.com> wrote:
> > > If I run tomcat as a windows service, what is the best way to get a VM
> > > thread dump?  From a command window it's pretty easy with the
> > > Control-Break command.. what are my options for doing the equivalent
> > > from a running tomcat windows service?
> > >
> > > Thanks,
> > > Patrick
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> >
> > --
> > Thanks and best regards,
> > Anoop
> >
> 
> --
> Patrick
> 


-- 
Patrick

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


Re: VM thread dump from windows service

Posted by Patrick Lacson <pl...@gmail.com>.
perfect.  this works nicely!

thanks,
patrick


On 4/22/05, Anoop kumar V <an...@gmail.com> wrote:
> Patrick,
> 
> I am not sure if this will help you but it is worth checking out Stack
> trace at the following link:
> 
> http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> 
> let me know if it helped..
> -Anoop
> 
> On 4/22/05, Patrick Lacson <pl...@gmail.com> wrote:
> > If I run tomcat as a windows service, what is the best way to get a VM
> > thread dump?  From a command window it's pretty easy with the
> > Control-Break command.. what are my options for doing the equivalent
> > from a running tomcat windows service?
> >
> > Thanks,
> > Patrick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> --
> Thanks and best regards,
> Anoop
> 


-- 
Patrick

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


Re: VM thread dump from windows service

Posted by Patrick Lacson <pl...@gmail.com>.
This looks promising.  

the application detects VM instances and can pull a thread-dump on
that instance..  i'll try it on monday and see how it goes.

thanks!

On 4/22/05, Anoop kumar V <an...@gmail.com> wrote:
> Patrick,
> 
> I am not sure if this will help you but it is worth checking out Stack
> trace at the following link:
> 
> http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> 
> let me know if it helped..
> -Anoop
> 
> On 4/22/05, Patrick Lacson <pl...@gmail.com> wrote:
> > If I run tomcat as a windows service, what is the best way to get a VM
> > thread dump?  From a command window it's pretty easy with the
> > Control-Break command.. what are my options for doing the equivalent
> > from a running tomcat windows service?
> >
> > Thanks,
> > Patrick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> --
> Thanks and best regards,
> Anoop
> 


-- 
Patrick

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


Re: VM thread dump from windows service

Posted by Anoop kumar V <an...@gmail.com>.
Patrick,

I am not sure if this will help you but it is worth checking out Stack
trace at the following link:

http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp

let me know if it helped..
-Anoop

On 4/22/05, Patrick Lacson <pl...@gmail.com> wrote:
> If I run tomcat as a windows service, what is the best way to get a VM
> thread dump?  From a command window it's pretty easy with the
> Control-Break command.. what are my options for doing the equivalent
> from a running tomcat windows service?
> 
> Thanks,
> Patrick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Thanks and best regards,
Anoop

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