[Show path to GC root]
button in the graph view and
the incoming references view
of the heap walker.
The path to root analysis can calculate:
By default the path to root search uses classes as garbage collector roots. This is not strictly correct but valid in most situations and makes the path to root search much more usable. For example, a static field of a class is technically not a garbage collector root, but in practice any information about why a class is not garbage collected is not interesting. The only case where you need a different behavior is when searching for classloader-related memory leaks. In that case, you can deselect "Use classes as roots" to use the true garbage collector roots exclusively. After completing the dialog with the [OK] button, the analysis will be calculated and the result will be shown in the reference view. With the [Cancel] button, the path to root option dialog is closed and no analysis is performed. |