Identifying memory-intensive classes

The performance of a program can be greatly enhanced by identifying, and eliminating or modifying classes that take up large portions of a program's memory. You can use the Memory Statistics view to identify these classes. Prerequisites:

To identify memory intensive classes, follow these steps:

  1. In the Profiling Monitor view, select the monitor or agent for you application.

  2. Right-click, then select Open With > Memory Statistics.  The Memory Statistics view opens. 

  3. Click Class from the toolbar to display the class statistics.

  4. In the Memory Statistics view, right-click and select Choose Columns.

  5. Select both Active Size and Total Size options.

  6. Click OK.

  7. Identify the classes with the greatest total size value. These are the most memory-intensive classes. Use the Active Size column to see the total size for the instances that have not been garbage collected.

Related concepts
Overview of the Profiling Tool
Statistical views

Related tasks
Profiling an application
Launching or attaching a Java process