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:
- Launching or attaching to an application
- Memory Analysis profiling set is enabled.
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 Open With > Memory Statistics. 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 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.
Related concepts
Overview of the Profiling Tool
Statistical viewsRelated tasks
Profiling an application
Launching or attaching a Java process
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.