heapdump , 类似 jmap 命令的 heap dump 功能。
arthas-output 是arthas 生成到项目中的文件。
dump.hprof 是自定义的 dump 文件名称。
[arthas@26028]$ heapdump arthas-output/dump.hprof
Dumping heap to arthas-output/dump.hprof ...
Heap dump file created
[arthas@58205]$ heapdump --live /tmp/dump.hprof
Dumping heap to /tmp/dump.hprof ...
Heap dump file created
jvm
结果如下:
https://arthas.gitee.io/doc/dump.html
https://arthas.gitee.io/doc/heapdump.html