How to Temporarily Modify Memory Settings via RSMEMORY

There is an ABAP report ran with an ABAP dump as in transaction code ST22, “TSV_TNEW_PAGE_ALLOC_FAILED”. The recommendation is to increase the heap memory from the initial 2GB + 2GB (Dialog + Background) to 4GB + 4GB (Dialog + Background) temporarily for testing purposes.

Solution

Firstly, check the current memory allocation for both dialog and non-dialog work processes. These values can be obtained via transaction code RZ11.

  • Dialog (DIA): abap/heap_area_dia
  • Non-Dialog (BTC/UPD/UPD2/SPO): abap/heap_area_nondia

Repeat the same check for non-dialog parameter.

Next, execute transaction code SE38 or SA38.

Before we go changing the values, please refer below statement on how to interpret the below screenshot (how the memory allocation works). Taking on Dialog (refer to Quota Dialog, first box)

Firstly, the dialog work process will be given approximately 2GB of Extended Memory (EM) assignment. If the extended memory fell short from the memory requirement, then another 2GB of Heap/Private Memory (HEAP) will be made available.

Additional points to note:

  • Memory allocation sequence will be according to which memory class is being defined in each step
  • Memory Class 1 is indication for EM and Class 2 is HEAP
  • Extended memory and heap/private memory is shared with other WP as well
  • Parameter abap/heap_area_dia & abap/heap_area_nondia values should not be more than abap/heap_area_total value.

To increase the HEAP to 4GB, below indicated values require to be update accordingly. Click “Copy” button to save the settings.

Normally, when additional memory is added to DIA or NON-DIA, the total (indicated by yellow box) will need to be increase to match the new value specify if it is smaller the new value. In above case, we do not need to change the abap/heap_area_total value since the new value for abap/heap_area_dia & abap/heap_area_nondia is still smaller than the total value.

Note that the RSMEMORY report will impact the current apps server it is run on. For multiple apps servers, RSMEMORY will need to be executed in all application servers individually.

For validation, please use transaction code ST02 and double click on

This screenshot is captured for demo purposes. The value shown are different from the configuration.

You May Also Like

Leave a Reply?