mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
1.1 KiB
1.1 KiB
Dump the bytecode for the particular classes to the specified directory.
Options
| Name | Specification |
|---|---|
| class-pattern | class name pattern |
[c:] |
hashcode of the class loader that loaded the target class |
[d:] |
set the destination directory for class files |
[E] |
turn on regex match, the default behavior is wild card match |
Usage
dump java.lang.String{{execute T2}}
$ dump java.lang.String
HASHCODE CLASSLOADER LOCATION
null /Users/admin/logs/arthas/classdump/java/lang/String.class
Affect(row-cnt:1) cost in 119 ms.
dump demo.*{{execute T2}}
$ dump demo.*
HASHCODE CLASSLOADER LOCATION
3d4eac69 +-sun.misc.Launcher$AppClassLoader@3d4eac69 /Users/admin/logs/arthas/classdump/sun.misc.Launcher$AppClassLoader-3d4eac69/demo/MathGame.class
+-sun.misc.Launcher$ExtClassLoader@66350f69
Affect(row-cnt:1) cost in 39 ms.
dump -d /tmp/output java.lang.String{{execute T2}}
$ dump
HASHCODE CLASSLOADER LOCATION
null /tmp/output/java/lang/String.class
Affect(row-cnt:1) cost in 138 ms.