arthas用法
启动demo java -jar arthas-demo.jar
启动 java -jar arthas-boot.jar
attach 目标进程 输入2,再输入回车/enter。
dashboard 显示进程信息
thread 1  //会打印线程ID 1的栈,通常是main函数的线程。
jad demo.MathGame  //反编译Main Class
 watch demo.MathGame primeFactors returnObj  //查看demo.MathGame#primeFactors函数的返回值:
 quit或者exit  //退出
 
class/classloader相关
sc demo.*   //模糊搜索
sc -d -f demo.MathGame  //打印出类的Field信息
jad --source-only demo.MathGame   //反编绎时只显示源代码
 jad demo.MathGame main //反编译指定函数
打开日志记录功能
 options save-result true
日志路径
{user.home}/logs/arthas-cache/result.log, 

 

相关文章:

  • 2021-07-23
  • 2021-06-03
  • 2021-07-11
  • 2022-12-23
  • 2021-11-21
  • 2022-02-11
  • 2021-08-31
  • 2021-10-01
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-12-05
  • 2021-04-13
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案