mchr
mchr

Reputation: 6251

Java Thread Dump Summarisation Tool

I sometimes have to look at thread dumps from a Tomcat server. However, this is a very slow process as my application uses thread pools with a couple of hundred threads. Most of the thread dumps I look at include the same stack trace for many of the threads as they are idle waiting for work.

Are there any tools which would parse a thread dump and only show me the unique stack traces along with a count of the number of threads in each state? This would allow me to quickly ignore the tens or hundreds of threads which are waiting in a common location for work.

I have tried the Thread Dump Analyzer but this doesn't do any summarisation of common stack traces.

Upvotes: 8

Views: 2479

Answers (3)

Johan Walles
Johan Walles

Reputation: 1530

Here's an online tool that does exactly what you ask for, no installation necessary:
http://spotify.github.io/threaddump-analyzer/

Upvotes: 1

mchr
mchr

Reputation: 6251

I have written a tool to do what I wanted.

Java Thread Dump Analysis Tool

Upvotes: 5

Joel
Joel

Reputation: 30166

Haven't used it for a while but Samurai might be of interest.

Upvotes: 3

Related Questions