Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Debug - Memory Analysis

Former Member
0 Likes
569

Hi All,

Here' s a general question. While running debug - there are some special tools. In special tools I select Memory Analysis.

There is memory sizes displayed. What exactly are they referencing? Will this help me to determine the problem when there is a short dump due to memory problems?

I am looking for an explaination of the following?

Allocated?

Used?

At a guess: Is this the memory that is allocated based upon the need in the program - used memory - when it gets high enough is changed to allocated memory? I'm confused.

I have tried the following links - they confused me more.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/233be990-0201-0010-3d9b-c0fa72276...

http://help.sap.com/saphelp_nw04/helpdata/en/7a/caa6f6bfdb11d188b30000e83539c3/frameset.htm

Thank you for your help!

Michelle

1 ACCEPTED SOLUTION
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
483

Hi Michelle,

yes, this tool will help you with memory analysis in case of memory problems.

On the initial view you can see

allocated, that is the memory that is allocated to your program.

used, that is the memory that is actually used.

The ABAP program allocates memory in blocks which are e.g. 4 MB in size (depends on paramter em/blocksize_KB).

The variables and internatl tables and objects are stored in these blocks. If you have an internal table with 2 MB youl will see

4MB allocated (you can't allocate less) and 2MB (+ some overhead) used.

If you click on the small button that shows 3 squares and 1 cicrle you will get a list of the biggest objects using the "used memory".

Hope this helps,

Hermann

2 REPLIES 2
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
484

Hi Michelle,

yes, this tool will help you with memory analysis in case of memory problems.

On the initial view you can see

allocated, that is the memory that is allocated to your program.

used, that is the memory that is actually used.

The ABAP program allocates memory in blocks which are e.g. 4 MB in size (depends on paramter em/blocksize_KB).

The variables and internatl tables and objects are stored in these blocks. If you have an internal table with 2 MB youl will see

4MB allocated (you can't allocate less) and 2MB (+ some overhead) used.

If you click on the small button that shows 3 squares and 1 cicrle you will get a list of the biggest objects using the "used memory".

Hope this helps,

Hermann

Read only

Former Member
0 Likes
483

That helps a lot!

Thank you.