Get a list of all currently loaded classes in this JVM instance.

It would be convenient to know which classes are currently loaded by this JVM instance.

Is there a way to get them through JVisualVM, for example?

Edit: I know the solution given by @ Java. Get a list of all the classes loaded in the JVM , but I would like to know if there is a way to do this through JVisualVM or some other tool. I am currently working against an RCP application, and I would prefer not to run the application using the java tool (I'm lazy, yes).

+6
source share
1 answer

Have you tried jconsole ?

Jconsole should be able to display a list of loaded classes, see jConsole Documentation .

See Overview overview section, the screenshot shows the number of classes loaded. In addition, you can see a tab called Classes , here you can find information about loading a class.

+1
source

Source: https://habr.com/ru/post/945046/


All Articles