阿里出品:官网 https://alibaba.github.io/arthas/
入门:
1、下载
2、启动
java -jar arthas-boot.jar
3、输入待分析的java进程序号,启动挂在分析
4、关闭 Arthas 服务端:stop
典型使用

sc:查看JVM已加载的类信息
模糊搜索 sc demo.*

打印类的详细信息 sc -d demo.MathGame

打印出类的Field信息 sc -d -f demo.MathGame

thread 当前 JVM 的线程堆栈信息
thread -b发现死锁
死锁常规分析操作:jstack打印,人工分析。

jad 反汇编指定class

redefine 动态替换内存中class,热部署
redefine 本地待替换class全路径
原文:https://www.cnblogs.com/clarino/p/12885899.html