You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thangavel Sankaranarayanan <ts...@in.ibm.com> on 2008/08/01 16:05:13 UTC

Status of threads in Tomcat( window service)

Hi,

Please help me in find no of threads and thier status spawned by tomcat
connector...at any instant of time... i am using tomcat as a window service
..so i couldn't create a thread dump... any other method which we can
employ other than adding any extra API like JMX etc..

Thanks,
Thangavel.S


---------------------------------------------------------------------
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


Re: Status of threads in Tomcat( window service)

Posted by Bill Barker <wb...@wilshire.com>.
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" <Pe...@melandra.com> wrote in message 
news:6715CF65287F8F408DA109EC03AC6C0D03E20EDE46@puma.melandra.net...
> From: Johnny Kewl [mailto:john@kewlstuff.co.za]
> From: "Thangavel Sankaranarayanan" <ts...@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


RE: Status of threads in Tomcat( window service)

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Johnny Kewl [mailto:john@kewlstuff.co.za]
> From: "Thangavel Sankaranarayanan" <ts...@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


Re: Status of threads in Tomcat( window service)

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message ----- 
From: "Thangavel Sankaranarayanan" <ts...@in.ibm.com>
To: <us...@tomcat.apache.org>
Sent: Friday, August 01, 2008 4:05 PM
Subject: Status of threads in Tomcat( window service)


>
> Hi,
>
> Please help me in find no of threads and thier status spawned by tomcat
> connector...at any instant of time... i am using tomcat as a window 
> service
> ..so i couldn't create a thread dump... any other method which we can
> employ other than adding any extra API like JMX etc..
>
> Thanks,
> Thangavel.S

http://localhost:8080/manager/status

will give you some info on thread usage

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...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------





---------------------------------------------------------------------
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