Memory Statistics view

The Memory Statistics views displays statistics about the application heap. It provides detailed information such as the number of classes loaded, the number of instances that are alive, and the memory size allocated by every class. Memory statistics are available at the package, class, and instance level.

Display

This view is made of a table where the first column presents the list of items. There are three display modes are available based on the three object types:

Statistics displayed for each object type

The data displayed depends what object type is selected. The statistics available for each object are summarized in the table below.

Column heading Package statistics 
Icon for package
Class statistics
Icon for package
Instance statistics
Icon for package
Total Instances
The total number of instances that had been created of the selected package, class, or method.
Accumulated by package Accumulated by class Count
Live Instances
The number of instances of the selected package, class, or method, where no garbage collection has taken place.
Accumulated by package Accumulated by class Count
Collected
The number of instances of the selected package, class, or method, that were removed during garbage collection.
Accumulated by package Accumulated by class Count
Total Size
The total size (in bytes) of the selected package, class, or method, of all instances that were created for it, including whatever has been removed through garbage collection.
Accumulated by package Accumulated by class Size
Active Size
The summed size of all live instances. 
Accumulated by package Accumulated by class Size

Note: The totals shown in this view represent only the data that has been collected since you started monitoring your process. If you start monitoring your process half way through the execution, you will only see the totals from the point that you started monitoring. As well, in the package mode, only the totals of the collected classes for that package are shown. Classes that you have filtered out will not be included in the totals.

Display symbols

Controls

Toolbar controls

Icon Definition
Icon for package Display the package statistics
Icon for class Display the class statistics
Icon for instance Display the instance statistics
Open source icon Open the source of a selected item.
% Shows the percentage of memory allocated.
delta Shows the change in each numeric column since the last refresh.
Choose column icon Choose the columns to display.
Export HTML icon Export the data to a file in HTML format.

Pop-up menu controls

Icon Definition
Refresh Views icon Refresh the view.
Choose column icon Choose the columns to display.
Show object references Show object references.
Open source icon Open the source of a selected item.

Filtering

The statistics views provide filtering based on name.  Use the Filter field to specify a string pattern. 

Column controls

Click the title of a column to sort it. Click the title of the column again to sort it in reverse order. The title of the column is prefixed with < if the column is sorted in ascending order or with > if it is sorted in descending order.

Columns can be hidden or shown. 

 


Related concepts
Overview of the Profiling Tool
Profiling resources

Related tasks
Profiling an application
Identifying memory-intensive classes


(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.