Arthas 链路性能与内存使用分析

  1. 软件下载安装:https://arthas.aliyun.com/doc/download.html
  2. idea插件配置及使用方法:https://www.yuque.com/arthas-idea-plugin/help
  3. arthas使用方法:https://arthas.aliyun.com/doc/quick-start.html
    使用案例分享:https://developer.aliyun.com/article/751641
  4. 特殊用法配合 OGNL https://github.com/alibaba/arthas/issues/71
    https://commons.apache.org/proper/commons-ognl/language-guide.html
  5. 常用命令如下:

性能或方法变量追踪分析常用:

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支持)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值