Analyzing method execution: 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.

Before you begin

  • Launch or attach to an application.
  • Enable Memory Analysis profiling set.


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 Class statistics icon from the toolbar to display the class statistics.
  4. In the Memory Statistics view, right-click and select Choose Columns.
  5. Select both the 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.