Statistics of objects in the old generation?

Is there any tool to view object statistics for different generations of the JVM heap? I am looking for a potential memory leak and need some data from different generations. The use case I have is to take a picture on top of an object in older generations, wait, and then take another picture for comparison.

JVisualVM offers statistics on the created object, but it doesn’t help me much, since I don’t see whether or not a particular object is moving faster than it should.

Jmap offers statistics for different generations, but not object-based. In this tool, I can only see that the old generation is growing ...

+5
source share
1 answer

Launch the app on Yourkit. It has a generation view tab. You can take pictures of your heap and compare which objects are still alive between snapshots.

Documentation

Here is a helpful @JT answer .

Read more ... link

+4
source