好好生活
  平平淡淡每一天

编辑

arthas

https://arthas.aliyun.com/doc

arthas 启动

选择任意一种方式即可
image

jps查看项目得到进程号

启动方式一

./as.sh pid

image

启动方式二

java -jar arthas-boot.java pid

image

异常处理

arthas在连接了一个java程序之后,需要断开才能连接第二个,不然会报如下错:
image

根据提示,重新连接:./as.sh 4062197

生成火焰图

# 启动 profiler
profiler start
# 查看 profiler 状态
profiler status
# 停止
profiler stop

image

posted @ 2025-07-30 14:14  踏步  阅读(11)  评论(0)    收藏  举报