Generations distribute objects by time of their creation, and are thus very helpful in finding memory leaks and performing other analysis of how heap content evolves over time.
When an object is created, it is associated with the current generation number. The generations are sequentially numbered starting from 1. The current generation number is automatically advanced on capturing memory snapshot. It can also be explicitly advanced with the help of "Advance Object Generation Number" toolbar button, as well as via API.
The generation represents an object's age: the smaller the generation number, the older the object.
All tabs representing live objects have a "Generations" view. In this view, you can see objects separated by time of their creation:
To show generation for a single object, use Memory | Quick Info (Ctrl+Q):
See also the typical memory leak detection scenario.
The generations are available in Java 5 or newer.
