Java线程转储总结工具 [英] Java Thread Dump Summarisation Tool

查看:152
本文介绍了Java线程转储总结工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时需要查看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线程转储总结工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆