Classes loaded by jvm

I have a running jvm process and I want the tool to load the classes loaded by this jvm, is there one?

+3
source share
5 answers

you can use jmap -histo <PID>

It will show a histogram of the loaded classes, including the class name, number of instances, size, etc.

+7
source
jinfo <pid>

will provide you with fairly detailed information, including class paths and banks along the way. see here

The jinfo command may be limited by permissions granted to the manager executing the command. The team will list only JVMs for which the principle has access rights defined by specific access control operating systems.

, jinfo Windows Linux itanium.

+4

You can use the following on the command line

java -verbose:class ....

and the JVM will upload what it loads, including all its locations

+2
source

try the visual virtual machine. It is free, but does not apply to the JRE / JDK, but you can download it from the official oracle website. You can also make a bunch of heaps, and you can view it with standard tools from the JDK.

+1
source

If the JMX process is enabled , you can use jvisualvm(bundled with the JDK) to examine these properties.

0
source

All Articles