监测工具-Arthas-JVM调优过程


1.启动Arthas

curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar

2.选择检测java程序
3.查看dashboard

 4.thread 进程号 

查看 线程堆栈信息

5.jad反编译代码

6.导出dump文件 

heapdump heapdump.hprof 

导出后就使用jvisualvm或mat进行分析

 

 

JVM-调优思路

 

1.CPU占用过高

  a.线程过高,jstack分析栈信息

  b.频繁GC,jstat分析GC情况

2.内存占用过高

  a.产生大量对象,jmap分析堆信息

  b.对象长期在老年代,jstat分析GC情况

 

 

 








参考:https://arthas.aliyun.com/doc/quick-start.html#_3-%E6%9F%A5%E7%9C%8B-dashboard
 
posted @ 2023-10-26 16:41  能。  阅读(37)  评论(0)    收藏  举报