Ansicht
Dokumentation

ABENSHM_OBJECTS_OUT_OF_MEMORY - SHM OBJECTS OUT OF MEMORY

ABENSHM_OBJECTS_OUT_OF_MEMORY - SHM OBJECTS OUT OF MEMORY

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- Memory Bottlenecks

The shared memory of an is a limited resource. The ABAP runtime framework uses it to store programs, program data, buffers and so on. With explicit ABAP programming, either data clusters in cross-transaction application buffers or shared objects in the shared objects memory can be accessed.

The maximum amount of shared memory that can be occupied by the different users is defined statically using profile parameters. Transaction ST02 shows the current utilization of the shared memory and the associated profile parameters.

If the memory allocated for the shared objects memory using the profile parameter abap/shared_objects_size_MB is exceeded when shared objects are used, a catchable exception of class CX_SHM_OUT_OF_MEMORY is raised. This exception can be raised in the following situations:

  • When shared objects are created or changed in the shared memory

For this reason, it is recommended that the exception CX_SHM_OUT_OF_MEMORY is handled each time the shared objects memory is accessed. This is easiest when all accesses to shared objects, which in ideal situations only occur within a single wrapper class, also take place in a single TRY control structure in which the exception is handled. If there is still a change lock on the area when the exception is handled, which can be determined using the method GET_LOCK_KIND of the area handle), it should be removed using DETACH_ROLLBACK.

Note

A suitable fallback strategy should be implemented to handle the exception CX_SHM_OUT_OF_MEMORY that for example creates the required objects in the internal session and copies the previous content from the shared memory to these objects.






CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3248 Date: 20240423 Time: 165317     sap01-206 ( 44 ms )