- 软件下载安装:https://arthas.aliyun.com/doc/download.html
- idea插件配置及使用方法:https://www.yuque.com/arthas-idea-plugin/help
- arthas使用方法:https://arthas.aliyun.com/doc/quick-start.html
使用案例分享:https://developer.aliyun.com/article/751641 - 特殊用法配合 OGNL https://github.com/alibaba/arthas/issues/71
https://commons.apache.org/proper/commons-ognl/language-guide.html - 常用命令如下:
性能或方法变量追踪分析常用:
trace com.idgcapital.iceforce.web.controller.ClassName methodName -n 5 --skipJDKMethod false
monitor -c 5 com.ClassName methodName
watch demo.MathGame primeFactors -x 2
stack demo.MathGame primeFactors
tt demo.MathGame primeFactors
内存分析对象方法入参及返回值:
getstatic className atrrName
sc -d com.idgcapital.iceforce.core.mongo.MongoFileService
sm -d com.idgcapital.iceforce.core.mongo.MongoFileService
vmtool
动态字节码加载/导出类字节码/编译器:
dump
heapdump
classloader
mc
retransform
redefine
反编译:
jad
线程及堆栈分析:
thread
cpu相关:
profiler start (linux支持)