todo

arthas使用,获取实例,运行代码等

up:2025-04-10 11:17:29 edit:2025-04-11 03:04:01 view:143

faq

https://arthas.aliyun.com/doc/faq.html



1. 根据类获取实例并展示字段

vmtool -a getInstances --className java.lang.Thread -x 2 -l 3

2. 查看cpu忙的线程

thread

thread 进程号 查看堆栈

3.  反编译类看代码和classloader

jad com.gd67.*.Main

4. 运行代码

ognl 'new java.util.Date()'

ognl '@String@class + ""'


5. 火焰图

profiler start

profiler stop [--format flat] 控制台看的话

TAGS: java jvm arthas

not in sinaapp