新接手个项目运行起来非常卡怎么办
2021-03-19 本文已影响0人
程序员大春
你需要一个好工具 性能分析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
image.png
官方文档
https://arthas.aliyun.com/doc/arthas-tutorials.html?language=cn