arthas线上监控
官网:https://arthas.aliyun.com/doc/commands.html
安装运行
curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar
常用命令
- dashboard
火焰图
profiler start
默认情况下,生成的是 cpu 的火焰图,即 event 为
cpu
。可以用--event
参数指定其他性能分析模式。
停止:
profiler stop --format flamegraph