arthas

发布时间 2023-07-10 22:01:43作者: france水

arthas

下载执行

所有命令

常用命令

  • jvm 查看jvm信息

  • memory 查看jvm内存信息

  • ognl '@java.lang.System@out.println("hello")' 可调用类的静态方法

  • dashboard 查看线程及堆栈信息

  • thread 1 | grep 'main(' 查看过滤线程信息

  • jad demo.MathGame 反编译

  • watch demo.MathGame primeFactors returnObj 观察远程服务器方法的调用出入参、异常情况

    • watch demo.MathGame primeFactors "{params,returnObj}" -x 2
  • trace demo.MathGame run 跟踪方法路径,输出方法花费时间

  • stack demo.MathGame primeFactors 打印出当前方法的完整调用堆栈

  • sc -d demo.MathGame jvm已加载类的信息 -d 详情