Identifying the objects consuming heap memory

When you notice that the heap memory is unexpectedly consumed (e.g. when monitoring used heap memory at Timeline page), you may want to identify which objects are actually consuming heap memory.

To identify the objects consuming heap memory:

  1. Make sure that the heap histogram is sorted by Size column, and see the consumed heap memory size for each class.
  2. If you are interested in which objects are being increased during a certain duration, press Clear Delta button [] at the local toolbar to clear delta size, and sort with Delta column.
  3. Double-click the class to check the code on Java editor as needed.

Note: If the refresh is too fast to see the content, unselect Refresh toggle button [] at the local toolbar to disable refresh. Alternatively, you can change the period to update on preference page Window > Preferences > Java > Monitor > Period to update.