Open GenweiWu opened 2 years ago
watch demo.MathGame primeFactors returnObj
# 通过-x来看更详细,值越大越详细
watch demo.MathGame primeFactors returnObj -x 10
ognl '@com.njust.TestConstants@XXX_URL'
@String[/api/xxx/{id}]
jad java.lang.String
软件安装
入门
docker中
命令
sc
search class 查找所有JVM已经加载到的类。
sc javax.servlet.Filter sc exampleController*
sm
search method,查找类的方法
sm java.lang.String java.lang.String([BII)V
...
java.lang.String equals(Ljava/lang/Object;)Z
java.lang.String toString()Ljava/lang/String;
java.lang.String hashCode()I
java.lang.String compareTo(Ljava/lang/Object;)I
java.lang.String indexOf(Ljava/lang/String;I)I
watch监听异常信息,和对应的参数
watch 类 方法(支持通配符) ongl表达式
watch com.example.demo.arthas.user.UserController * '{params,throwExp}'
x 2表示展示具体信息到2层,默认1层
watch com.example.demo.arthas.user.UserController * '{params,throwExp}' -x 2
watch支持条件表达式,
比如限制参数值大于100
watch com.example.demo.arthas.user.UserController '{params,throwExp}' 'params[0]>100' watch com.example.demo.arthas.user.UserController '{params,throwExp}' 'params[0]>100' -x 2
-e,捕获异常时
watch com.example.demo.arthas.user.UserController * '{params,throwExp}' -e
cost>10'时间超过一定阈值时
watch com.example.demo.arthas.user.UserController * '{params,throwExp}' '#cost>1'
参考