Just an example:

Exception ex = new Exception();
ByteArrayOutputStream s = new ByteArrayOutputStream();
ex.printStackTrace(s);
String str = s.toString();

> -----Original Message-----
> From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 03, 2004 12:58 PM
> To: Tomcat Users List
> Subject: Re: How to get a thread stack dump programmatically
> 
> My problem is I want a full stack dump, so I need to obtain
> stack traces from all threads, even those out of my control. 
> Specifically, I would like to obtain a stack thread from all 
> Tomcat worker threads, and if they are in a deadlock state, 
> I cannot print their stack trace from within them ;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to