tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Status of threads in Tomcat( window service)
Date Sat, 02 Aug 2008 23:19:20 GMT
The latest version of the service manager (aka tomcatNw.exe) has the ability 
to generate a thread dump for Tomcat running as a service.  If this isn't an 
option in the menu on your version, you can upgrade just this component by 
grabbing tomcat6.exe and tomcat6w.exe from the most recent 6.0 distro and 
renaming the files as needed.

"Peter Crowther" <Peter.Crowther@melandra.com> wrote in message 
news:6715CF65287F8F408DA109EC03AC6C0D03E20EDE46@puma.melandra.net...
> From: Johnny Kewl [mailto:john@kewlstuff.co.za]
> From: "Thangavel Sankaranarayanan" <tsankara@in.ibm.com>
> > i am using tomcat as a window service
> > ..so i couldn't create a thread dump...

> http://localhost:8080/manager/status
>
> will give you some info on thread usage

This assumes the OP has the manager installed.  Difficult to tell, as the OP 
didn't give us a Tomcat version.

> To create a thread dump in windows... see this link
>
> http://www.adventnet.com/products/webnms/help/developer_guide/troubleshooting_tips/creating_threaddump.html
>
> Basically its just Ctrl Break from a dos box...

Johnny, *read the question before posting*.  The OP has already stated that 
they're running as a Windows service.  No DOS box.

To the OP: If you're on a recent enough JDK (1.6), use jstack.  If you're on 
an older JDK, you might want to upgrade just to get this ability :-).

http://blogs.sun.com/pcmreddy/entry/using_jstack_on_windows gives an 
overview of using jstack.
http://java.sun.com/javase/6/docs/technotes/tools/share/jstack.html is the 
Sun documentation for it.

                - Peter

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





---------------------------------------------------------------------
To start a new topic, e-mail: users@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