Exploring Memory Analysis Views > Exploring the Instance Detail View >  Understanding the Instance Detail View  

Understanding the Instance Detail View

The Instance Detail view has two panels. The upper panel displays a list of instances collected during the use case. The bottom panel has two tabs. One displays the referrers and references for the selected instance; the other displays the allocation stack trace.

Instance List

The upper panel contains the following data about each occurrence of an instance:

Column

Description

Name

Name and memory address

Size

Memory used by the object

Allocation Time

The time when the object was created

Referrers

The number of referrers to the instance

References

The number of references to other instances

Cumulative Size

The total size of all objects reachable from the instance

Keep Alive Size

The amount of memory that would be released if the object is removed

Allocated At

The method that allocated the instance or the package for the class containing the allocating method.

Referrers/References

The instance selected in the instance list forms the root of the Referrer tree. By expanding the branches, you can discover the path of references that attaches this instance to a live object and, ultimately, to the root set.

Loitering objects are caused by a live object inadvertently or unnecessarily retaining a reference to the loiterer for some period of time. To allow the garbage collector to remove a loitering object—and all its descendants—you must remove all references to the loiterer. When you locate your loiterer, you can look at the Reference panel to see how many objects a loiterer anchors.

The Referrer tree provides the following information:

Name

The instance that is referring to the instance that you are investigating

Type

The type of the reference

Field Name

The field in the referring instance that refers to the referenced instance

The Reference tree provides the following information:

Field Name

The field in the referring instance that refers to the referenced instance

Type

The type of the reference

Name

The name of the field that references the instance in the tree

Traces

The Allocated Stack Trace table contains information about the instance selected in the instance list. If class file contained line and source information, the class name and line number for the allocating code appear in the Source column.

Note In order for Traces to be available, you must have collected trace information during your use case.

The Allocation Stack Trace tab contains the following data:

Allocated At

Description

Method

Class and method names for the methods that allocated instances of the selected class

Source

The name of the class file and the line number of the method