如何通过JMX创建线程转储? [英] How do I create a thread dump via JMX?

查看:64
本文介绍了如何通过JMX创建线程转储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个作为Windows服务运行的Tomcat,众所周知那些与jstack不能很好地配合使用.另一方面,jconsole运行良好,我可以看到各个线程的堆栈(我正在连接到"localhost:port"以访问它).

I have a Tomcat running as a Windows Service, and those are known not to work well with jstack. jconsole is working well, on the other hand, and I can see stacks of individual threads (I'm connecting to "localhost:port" to access it).

如何使用jconsole或类似工具将所有线程堆栈转储到文件中?(类似于jstack)

How can I use jconsole or a similar tool to dump all the thread stacks into a file? (similar to jstack)

推荐答案

如今,您可以使用jvisualvm工具通过JMX连接到远程JVM并创建线程转储.不知道这是否可用

Nowadays you can use jvisualvm tool to connect to your remote JVM through JMX and create a thread dump. Don't know if this was available

这篇关于如何通过JMX创建线程转储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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