Using JConsole
在多线程下,我们可以使用 JConsole 监测线程状态,如有死锁,可以快速定位。
1、在启动项目前,我们可以在idea的VM options里添加参数:
1 | -Djava.rmi.server.hostname=127.0.0.1 |
2、找到Jdk自带的JConsole
3、使用本地进程方式连接对应启动的项目即可
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment





