On 28.04.2013 20:05, Mark Thomas wrote:
> On 28/04/2013 15:44, Rainer Jung wrote:
>> On 28.04.2013 15:28, Mark Thomas wrote:

>> I uploaded a class that has a static getDump() method which returns a
>> thread dump formatted very similar to the usual "kipp -QUIT" one:
>>
>> http://people.apache.org/~rjung/ThreadDump.java
>>
>> It retrieves the ThreadMXBean from the platform MBean server, gets the
>> ThreadInfo for each thread and formats the data. HTH.
>>
>> I had to strip down some longer code I had and only did a very quick
>> test but it seemed to work for me. It assumes Java 6 or newer.
> 
> I'm thinking o.a.tomcat.util.Diagnostics and add an option to call it
> from the manager. It is then available to any code that wants to use it.

I cleand it up and added it to trunk. I wired it to the text/script
manager (/text/vminfo and /text/threaddump). Not documented yet and some
XXX Todos in the file.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to