How do I create a thread dump via JMX?

前端 未结 4 825
Happy的楠姐
Happy的楠姐 2020-12-18 03:13

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 individu

4条回答
  •  清歌不尽
    2020-12-18 04:06

    You can use the ThreadMXBean management interface.

    This FullThreadDump class demonstrates the capability to get a full thread dump and also detect deadlock remotely using JMX.

提交回复
热议问题