https://arthas.aliyun.com/doc
arthas 启动
选择任意一种方式即可
jps查看项目得到进程号
启动方式一
./as.sh pid
启动方式二
java -jar arthas-boot.java pid
异常处理
arthas在连接了一个java程序之后,需要断开才能连接第二个,不然会报如下错:
根据提示,重新连接:./as.sh 4062197
生成火焰图
# 启动 profiler
profiler start
# 查看 profiler 状态
profiler status
# 停止
profiler stop