Java Thread Dump Summarisation Tool

2019-03-27 09:02发布

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.

3条回答
对你真心纯属浪费
2楼-- · 2019-03-27 09:05

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

查看更多
聊天终结者
3楼-- · 2019-03-27 09:09

I have written a tool to do what I wanted.

Java Thread Dump Analysis Tool

查看更多
唯我独甜
4楼-- · 2019-03-27 09:23

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

查看更多
登录 后发表回答