The heap walker classes view conforms to the basic layout of all heap walker views. Also see the help on key concepts for the entire heap walker. |
The functionality of the classes view is identical to that of the
all objects view and the
recorded objects view
except that it is static with respect to the current snapshot and
only instances of classes and arrays in the current object set are shown.
If you have multiple classes with the same name from different classloaders and want to differentiate between those classes, you have to navigate to a specific instance, go to the references view of the heap walker and continue with the class selection as described there. No specific view settings apply to the classes view. |
The classes view has an aggregation level selector. It allows you
to switch between
|
There are three sortable columns shown in the table:
|
By default, the classes view only shows the shallow size of the selected objects for each class.
To calculate the retained size on a per-class basis, click on the "Calculate estimated retained sizes" link
above the table. A new column for the retained sizes will be added.
Apart from the values for primitive arrays, all retained sizes are lower bounds. The algorithm is much faster than for a precise calculation and good enough in most cases. If you need the exact retained size on a per-class basis, make a new object set with the class of interest and click on the "Calculate retained and deep sizes" link in the object set description at the top. |
To add a selection step from this view you can select one or multiple rows from the table
and click on the [Use ...] button above the table.
In the drop-down menu you can decide whether to use the
|
Next to the [Use ...] button, a button [Group by Class Loaders] is shown.
This button invokes the group by class loaders inspection
and is just a convenience that emphasizes the importance of that inspection for solving class loader memory leaks.
After the inspection completes, the classes view will be shown again, with a class loader grouping at the top. You can select each class loader and see the loaded classes immediately in the classes table. By right-clicking a class loader row, you can select the class loader object and create a new object set with it. |