navigation controls allow to move back and
forth through all the instances or arrays in the current object set.
The instance navigation is linked among the following views of the heap walker:
This allows you to easily switch back and forth between these views while keeping the focus on the same object.
Please see the key concepts of the heap walker for an explanation of the different size types.
Sorting can take a few seconds, depending on the size of the heap. A progress dialog is shown while the objects are sorted.
After changing the sort order, the displayed index is set to one.
Please see the key concepts of the heap walker for an explanation of the different size types.
a regular reference.
a reference expanded by the search to garbage collector root (see below).
a reference from an object that is
already present as an ancestor node. This indicates a reference cycle. Cycles are more convenienrly analyzed
in the reference graph
The second icon is either not present or one of
a reference from a class.
In most circumstances, classes are the last step on the path to the GC root that you are interested in.
Classes are not garbage collector roots, but in all situations where no custom classloaders
are used it is appropriate and easier to treat them as such. This is JProfiler's default
mode when searching for garbage collector roots, you can change this in the
path to root options dialog.
Class objects have references to
Note that class objects have no reference to their super class.
Classes are not garbage collected together with their classloader when
a garbage collector root.
A garbage collector root is an entity in the JVM that itself is not garbage collected and pins other objects or classes.
There are the following types of garbage collector roots:
For classes there is a special condition that prevents garbage collection: Since each instance has an implicit reference to its class, any live instance prevents a class from being garbage collected. This construct groups all such instances for reasons of conciseness. In this way you can also select all instances of a specific class (rather than a specific class name).
Show paths to GC root
button in the view-specific toolbar or the corresponding entry in the context menu.
A dialog will ask you whether to search for a single garbage collector root or for all roots. After that, the paths to root are searched. A progress dialog is shown while the paths to root are calculated.
reference icon. To highlight the found path
without any distractions, no sibling references are shown on that level. To show all sibling references, you can
either choose the Show all incoming references action from the context menu or
View menu or collapse and expand the parent node.
After your selection, the view helper dialog will assist you in choosing the appropriate view for the new object set.