DevOps and System Administration Discussions
Dive into SAP DevOps and system administration. Join discussions to collaborate on optimizing workflows, share knowledge, and leverage resources effectively.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to troubleshoot High ABAP Memory Usage

former_member753105
Discoverer

How to troubleshoot High ABAP Memory Usage

1 ACCEPTED SOLUTION

Former Member

Hi nenavath,

Assuming this is either S/4 or ECC, and from a very basic and vroad perspective, ST02 and SM04 are a good place to start.

The two transactions display the memory consumption from different points of view; furthermore, different terms are used for the same thing.

When you call SM04 and choose "Goto -> Memory", the system displays the memory that is allocated for each user; the bottom line specifies the total memory requirement for all users. The following memory types are available (for more information, see the online documentation for the memory management):Roll * Page * Mem(Total) * Mem(Priv.)

The corresponding terms in transaction ST02 are:
Roll area * Paging area * Extended Memory * Heap Memory

The usual assumption that the total of all users of one memory type (for example, extended memory) must be identical with the currently used value in transaction ST02 (with converted units) is incorrect. This is due to the fact that the two overviews do not have the same goal.

  • In transaction ST02, you consider the memory consumption from the resources point of view (gross): How much memory is being used? The extended memory is, for example, always output in 1MB blocks (thus, it increases in jumps); for the roll memory, a certain portion is used for management data.
  • Transaction SM04 displays how much memory the current user requirements allocate (net). Management data is not included. Therefore, a steady growth is displayed when you repeatedly refresh.


For this reason, the corresponding figures (for example the total of "Mem(Total)" in transaction SM04 and "Extended Memory" - "Current use" in transaction ST02) do not have to be identical. Furthermore, it is not mandatory that one of the figures always has a lower value than the other figure. These are simply different views for the available memory.

The SAP Note for reference is 117907 - Display of SAP Memory usage in SM04 and ST02

From this point on, a trace will also be very helpful.

Kindly accept the answer if it helped you get started with your troubleshooting.

Cheers,

Luis

View solution in original post

4 REPLIES 4

Former Member

Hi nenavath,

Assuming this is either S/4 or ECC, and from a very basic and vroad perspective, ST02 and SM04 are a good place to start.

The two transactions display the memory consumption from different points of view; furthermore, different terms are used for the same thing.

When you call SM04 and choose "Goto -> Memory", the system displays the memory that is allocated for each user; the bottom line specifies the total memory requirement for all users. The following memory types are available (for more information, see the online documentation for the memory management):Roll * Page * Mem(Total) * Mem(Priv.)

The corresponding terms in transaction ST02 are:
Roll area * Paging area * Extended Memory * Heap Memory

The usual assumption that the total of all users of one memory type (for example, extended memory) must be identical with the currently used value in transaction ST02 (with converted units) is incorrect. This is due to the fact that the two overviews do not have the same goal.

  • In transaction ST02, you consider the memory consumption from the resources point of view (gross): How much memory is being used? The extended memory is, for example, always output in 1MB blocks (thus, it increases in jumps); for the roll memory, a certain portion is used for management data.
  • Transaction SM04 displays how much memory the current user requirements allocate (net). Management data is not included. Therefore, a steady growth is displayed when you repeatedly refresh.


For this reason, the corresponding figures (for example the total of "Mem(Total)" in transaction SM04 and "Extended Memory" - "Current use" in transaction ST02) do not have to be identical. Furthermore, it is not mandatory that one of the figures always has a lower value than the other figure. These are simply different views for the available memory.

The SAP Note for reference is 117907 - Display of SAP Memory usage in SM04 and ST02

From this point on, a trace will also be very helpful.

Kindly accept the answer if it helped you get started with your troubleshooting.

Cheers,

Luis

0 Kudos

Thank u luis

tom_wan
Contributor

Note 649327-Analysis of memory consumption

may helps

0 Kudos

Thank u Tom