ABAP program RSMEMORY
Once the concept of memory management is clear then the report RSMEMORY can be used to tune the memory allocation in any SAP server.
It can be used to specify the memory class assigned to a work process, the extent of the class assigned, and the order in which it is allocated.It is different for dialog work processes and non-dialog work processes like batch, update or spool.
To run the report, call the ABAP editor using transaction code se38 and enter program name as RSMEMORY. Following screen is displayed:
The following memory classes exist:
SAP roll area – 0
SAP Extended Memory(EM) – 1
Private Memory(Heap) – 2
The initial screen of the report comprises three parts:
Displaying the Memory AreasList of all the users on the application server, with their respective memory requirements can be dislayed, by choosing Goto EM/HEAP areas.
The used heap memory and extended of the user are displayed first, followed by the EM usage according to internal sessions.
This is followed by a history of users who have used more than the MB limit specified by em/stat_log_size_MB.The available HEAP and EM memory is displayed at the end of the list.
EG OverviewThe buttons EG Overview and EG Dump are used to analyze the Extended Global Memory. This is a part of the extended memory that is available for SAP-internal purposes. The parameter em/global_area_MB sets the size of Extended Global Memory.