I'm new to monitoring and profiling, and now I have a problem. Using VisualVM, I need to determine the name of the class whose objects occupy the largest amount of JVM memory, and then define the custom class in whose instances there are these objects. How can I do that?

    1 answer 1

    To use such things as VisualVM it is not at all necessary to be a profiling master - it’s enough just to understand how approximately the JVM stores objects in memory and how the GC works (the latter, by the way, is also not necessary).

    A specific tool depends on religious preferences - all of them, of course, differ somewhat from each other, but in general they perform the same task.