arthas使用

2021-12-27  本文已影响0人  化蝶飞618

安装

curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar

日常使用命令

详细参考:https://arthas.aliyun.com/doc/en/commands.html

trace

trace demo.MathGame run '#cost>2'
trace demo.MathGame run -n 1
trace --skipJDKMethod false demo.MathGame run

thread

thread
thread 1
thread -b
thread -i 1000
thread -n 3 -i 1000

jad

反编译指定的类

- 反编译指定类的方法
jad demo.MathGame
jad demo.MathGame main

monitor

监控方法调用

monitor -c 5 demo.MathGame primeFactors
monitor -c 5 demo.MathGame primeFactors "params[0] <= 2"

jvm

查看jvm详细信息

sysprop

检查目标JVM中的系统属性

vmoption

显示并更新vm诊断选项

上一篇 下一篇

猜你喜欢

热点阅读