我有时需要查看Tomcat服务器的线程转储。但是,这是一个非常缓慢的过程,因为我的应用程序使用了几百个线程的线程池。我看到的大多数线程转储包括对许多线程包含相同的堆栈跟踪,因为它们处于空闲状态等待工作。
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.
推荐答案我已经写了一个工具来做我想要的。
I have written a tool to do what I wanted.
Java线程转储分析工具
更多推荐
Java线程转储总结工具
发布评论