性能压测终极武器之arthas

1,安装, wget https://alibaba.github.io/arthas/arthas-boot.jar
2,启动,java -jar arthas-boot.jar --target-ip 0.0.0.0
3,实时数据看版dashboard
4,打印县城pid的栈信息 thread 1 支持grep
5,查看加载的类,sc -d *MathGame
6,反编译 jad demo.MethGame
7, 查看返回值 watch interface

8,统计方法执行时间

trace interface insertDoc/findByAll

官方文档:

https://alibaba.github.io/arthas/

原文地址:https://www.cnblogs.com/FengZiQ/p/12804152.html