The incoming references view shows instances in the current object set. Each instance can be opened to show
incoming references.
The table only concerns the top-level instances and shows the following sortable columns:
The number of top-level objects that are shown is limited to 100 by default. You can add more objects with the hyperlink after the last row in the table. The default number of objects can be adjusted in the view settings. |
Each reference node has one or two icons. The first icon is one of
The second icon is either not present or one of
Each object is optionally annotated with an object ID. With this ID, you can check whether two objects are the same or not. The display of IDs can be switched off the the context menu and the view settings. |
To check why an instance is not garbage collected, you can select it and click the [Show paths to GC root] button at the top of the view. The options dialog allows you to configure the way JProfiler performs the search. After the search has completed, the tree is expanded up to the garbage collector roots that were found. If the object is not referenced by a garbage collector root, a message box will be displayed. Note that this case is only possible if the "Perform full GC in heap dump" option in the heap walker option dialog is unchecked. Newly expanded nodes on the path to the GC root have a red 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. |
To analyze both incoming and outgoing references and to explore the relationship between objects of interest, use the [Show in graph] button at the top of the view. The selected instances will be then be added to the graph. The graph is not cleared when you choose a new object set or go back in the history, so you can add objects from different object sets to the graph. |
If you're profiling in live mode, the
[Show toString() values] button
at the top of the view is active. When you click it, JProfiler invokes toString() on all expanded
references in the view and shows the results. If you open more references or add more references with the
hyperlink at the bottom of the table, those objects will not have their toString() values
displayed. You will have to click the button again in order to show the missing values.
The reason why this operation is not performed automatically is that calculating toString() values is an expensive operation that invokes Java code in the profiled JVM and may even have unwanted side effects in buggy implementations. |
To add a selection step from this view you can select one or multiple objects and click the
[Use ...] button above the graph and choose in the popup menu. Multiple objects are selected by
keeping the SHIFT or CTRL keys pressed during selection. The following selection modes are available:
After your selection, the view helper dialog will assist you in choosing the appropriate view for the new object set. |