你需要一个好工具 性能分析arthas
- 废话不多少先安装&运行
curl -L https://arthas.aliyun.com/install.sh | sh
sh as.sh
- 运行起来,选择你要监控分析的.jar
-
image.png
-
image.png
先来看看CPU使用率top n线程的栈
thread -n 3
在看看有木有死锁线程
thread -b
监控面板
dashboard
![](https://img.haomeiwen.com/i19809266/173c68eba0bb3e2f.png)
官方文档
https://arthas.aliyun.com/doc/arthas-tutorials.html?language=cn
网友评论