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.
Procedure
To identify memory intensive classes, follow these steps:
- In the Profiling Monitor view, select the monitor or agent for you application.
- Right-click, then select . The Memory Statistics view opens.
- Click Class
from the toolbar to display the class statistics.
- In the Memory Statistics view, right-click and select Choose Columns.
- Select both the Active Size and Total Size options.
- Click OK.
- 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.