dumpclass
dumpclass copied to clipboard
Dump classes from running JVM process.
https://github.com/openjdk/jol/blob/0.16/jol-core/src/main/java/org/openjdk/jol/vm/sa/ServiceabilityAgentSupport.java
因为即使加了各种的 `--add-exports`,在 `jdk.hotspot.agent` 里,是在 sun.jvm.hotspot.tools.jcore.ClassDump.run() 里 ,用Class.forName 来加载filter类的。用户自定义的类加载不到。 ```java public void run() { // Ready to go with the database... try { if (classFilter == null) { // If not...
if you use sa-jdi.jar to attach JVM and dump classes, it will be the STW?
java -cp './dumpclass.jar:$JAVA_HOME/lib/sa-jdi.jar' io.github.hengyunabc.dumpclass.DumpMain 用这个命令提示找不到主类是什么原因?