Find out who is keeping alive a single object.
Having found an expensive object it is then important to find all the reasons it is kept alive.
Argument | Description |
---|---|
object | One object for which the paths to GC roots should be found. |
-excludes | Fields of certain classes which should be ignored when finding paths. For example this allows paths through Weak or Soft Reference referents to be ignored. This is of the format class name pattern[:field name[,field name]*]. Subclasses of the class are also included. If no field names are specified for the class then all fields are excluded. |
-numberofpaths | The number of different paths to be displayed. |