Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

How to get a thread stack dump programmatically

Rodrigo Ruiz

2004-02-03

Replies:

Hi all, is there any way to get a stack trace of a given thread?

I want to obtain a full thread stack dump from a JSP, just like the one
obtained via kill -QUIT, but I do not find any method in the Thread
class that could be used to get this information.

I seem to recall that some code was posted some time ago in this list,
but I have not found it in the archives. Any ideas?

PS: What I really want to do is a tool for detecting deadlocks via
thread dump analysis :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.