Memory
Consumption
You use Memory Consumption to display the memory use in the Debugger. You also use it to save memory snapshots and analyze them using the Memory Inspector.

To open Memory Consumption, choose Goto → Display Condition →Memory Consumption.
The Memory Consumption display contains the following tabs:
...
The system displays the following memory use in bytes:
● Allocated memory
The memory requested in the roll or heap memory
● Used memory
The memory occupied by data in the roll or heap memory
● Heap memory
The private memory
● Roll memory
● Short memory
Memory for storing interim results
● Paging memory
For more
information about memory types, see
Virtual Address Space
of a Work Process.
The tab displays a list that contains all used data objects, sorted by bound memory. The list is updated automatically.
The following information is displayed for each data object:
● Label, Type, and Additional Info.
● Bound, Allocated Memory and Bound, Used Memory
Bound memory is freed up when a complete deletion takes place (for internal tables, with FREE). The bound memory of an object also includes the memory used by objects that only exist as references to that object. For example, if an internal table exclusively contains references to data objects that can be released by the garbage collector after the table is deleted, the referenced objects also contribute to the bound memory.
● Referenced, Allocated Memory and Referenced, Used Memory
This is the memory referenced by the data object (possibly skipping other data objects). This memory is not released when the data object is deleted, if other data objects still reference that memory. The referenced memory is always larger than or equal to the bound memory.
● Sharing
The column checkbox is selected if sharing is active for internal tables and strings after assignments.
● SCC
The column indicates if an internal table, an object, or an anonymous data object is part of an SCC. If you double-click it, the relevant SCC is displayed.
The following functions are available on the Memory Use – Ranking Lists tab:
● Change Settings
To use this
function choose
with the quick info text Change Settings.
A dialog box appears in which you can make the following settings:
○ You can choose the data objects that are displayed by selecting the following checkboxes:
■ Internal Tables
■ Strings
■ Objects
■ Anonymous Data Objects
○ You can choose to aggregate objects and anonymous data objects (created using CREATE DATA) by types and classes or not to aggregate them.
The system adds the static memory and the used memory of individual objects. This function is useful if a class or data type has many instances, all of which have low memory requirements.
○ You can choose to sort the data objects By Bound Memory or By Referenced Memory.
○ You can choose to update the data objects Automatically or On Request Only.
○ You can limit the number of entries in the list.
● Find References
To use this
function, choose
with the quick info text Find References.
The system lists all references to an object, anonymous data object, string, or internal table.

In the case of strings and internal tables for which sharing is active after assignments, the system displays all variables that are used to address the common data area. This also includes variables of other ABAP programs in the same internal session which access strings and internal tables declared using DATA ... COMMON PART.
● Node List
This function is available only after an aggregation.
To use this
function, choose
with the quick info text Node List.
The system displays all instances of a class or a data type.
● Save as Local File
To use this
function, choose
Save as Local
File.
The system saves an excerpt of the ranking list to a local file on the presentation server in Excel format.
The system displays a ranking list of the memory use of all Strongly Connected Components (SCC) in the current internal session, sorted by bound memory. The list only includes SCCs that consist of at least two elements.

A strongly connected component has the property that for every two elements A and B of such a component, there is a path in the object graph from A to B and from B to A. Therefore, the elements of a strongly connected component can be deleted only by the garbage collector, provided all outside references to elements of the component were deleted. Strongly connected components can be viewed as composite objects that can only be deleted as a whole.
In addition to bound and referenced allocated and used memory, the following information is displayed for SCC:
● SSC ID
● Number of Nodes
The column specifies the number of instances of a class, a data type, or the elements of an SCC.
This column is also displayed in the Memory Use – Ranking List tab after a grouping.
The following functions are available on the Memory Use – SCC tab:
● Change Settings
To use this
function choose
with the quick info text Change Settings.
A dialog box appears in which you can make the following settings:
○ You can choose to sort the data objects By Bound Memory or By Referenced Memory.
○ You can choose to update the data objects Automatically or On Request Only.
○ You can limit the number of entries in the list.
● Find References
To use this
function, choose
with the quick info text Find References.
The system lists all references to SCC.
● Node List
To use this
function, choose
with the quick info text Node List.
The system displays all elements of an SCC.
You can activate and deactivate the memory display for individual objects and data objects by choosing Settings → Memory Display On/Off. The current memory values are displayed in the display for the individual objects or data objects.