arthas手册



官方文档:https://alibaba.github.io/arthas/

下载安装

https://alibaba.github.io/arthas/manual-install.html

下载

https://maven.aliyun.com/repository/public/com/taobao/arthas/arthas-packaging/3.x.x/arthas-packaging-3.x.x-bin.zip

解压

启动

1
java -jar arthas-boot.jar

查看dashboard

[arthas@14628]$ dashboard

查看线程

[arthas@14628]$ thread

// 拿到最忙的3个线程

[arthas@14628]$ thread -n 3

dump内存数据

[arthas@14628]$ heapdump d:/data/dump.hprof

jhat分析dump文件

jhat d:/data/dump.hprof

生成一个web,通过浏览器访问

MAT分析dump文件