如何识别线程的启动者
可能的重复:
我可以获得当前线程生成的类和方法的名称吗?
是否有任何工具(可能是 javaagent)可以让我识别事件发生后启动线程的原因?
我有一个不会关闭的 Tomcat,并且线程名称(来自转储)没有多大用处。
Possible Duplicate:
Can I get the name of the class and method within which the current thread was spawned?
Are there any tools (perhaps a javaagent) that will let me identify what started a thread after the event?
I have a Tomcat that won't shut down, and the thread names (from the dump) aren't of much use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
堆栈跟踪的最低级别调用可能表明线程如何/为何启动......
The lowest level call of a stack trace might indicate how/why a thread was started...
做一件事, print堆栈跟踪,您将了解谁启动了该线程。
Do one thing, print the stack trace, and you will get who started the thread.