Arthas命令手册
JVM(内存)篇
1.查看JVM信息
jvm
2.内存火焰图
线程篇
1.CPU使用率前5的线程
thread -i 3000 -n 5 | plaintext
2.阻塞(等待获取锁)的线程
thread -b | plaintext
3.所有处于BLOCKED
状态的线程
thread --state BLOCKED | plaintext
CPU篇
1.arthas+jprofiler分析 采集的cpu jfr火焰图
profiler start --event cpu --interval 10000000 --format jfr --duration 180
Watch篇
设置json格式输出参数
options json-format true
条件过滤表达式
watch [class].[method] "{params,returnObj,throwExp}" "params[0].equals('123')" -n 5 -x 3