官方文档
地址:https://arthas.aliyun.com/doc/
官方文档中有基本指令使用的demo,文档简单易懂,此处不做赘述
高级指令
-
获取运行该方法的线程:
watch 类 方法 '{@java.lang.Thread@currentThread()}'
-
监听某线程的全局变量【-n 1表示只展示一次数据】:
watch 类 方法 'target.变量' '@Thread@currentThread().getName().contains("线程名")' -n 1
-
获取list
-
获取方法调用前后变量的内容【公有、私有变量都行】:
watch 类 方法 ‘target.变量’ -x 4