jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump - JVM Class Dumper

Q

How to run "jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump" tool from JDK lib\modules JImage file?

✍: FYIcenter

A

"jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump" tool allows you to dump class information of a given JVM process.

"jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump" tool is supported by the jmods\jdk.hotspot.agent.jmod module file, which is also linked into the lib\modules JImage file.

You can run the "jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump" tool using the lib\modules JImage file as described below:

fyicenter> %JDK_HOME%\bin\java --module jdk.hotspot.agent/sun.jvm.hotspot.tools.jcore.ClassDump

Usage: java jcore [option] <pid>
                (to connect to a live java process)
   or java jcore [option] <executable> <core>
                (to connect to a core file)
   or java jcore [option] [server_id@]<remote server IP or hostname>
                (to connect to a remote debug server)

where option must be one of:
    -h | -help  to print this help message

 

jdk.hotspot.agent/sun.jvm.hotspot.tools.StackTrace - JVM Stack Tracer

jdk.hotspot.agent/sun.jvm.hotspot.tools.HeapSummary - JVM Heap Summary

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-09-16, 1947🔥, 0💬