Arthas实用命令


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

文章作者: Trevor Zhang
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Trevor Zhang !
评论
  目录