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

determine available memory

Clemenss
Active Contributor
0 Likes
761

Hi you,

in a complex oo developed application we need to determine memory leaks. Is there any Class or function module to determine heap/stack memory space used/avalible?

Please try to vaoid answers like "multiply the structure sitze by number of lines of internal table" or such.

TIA,

Regards,

Clemens

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
725

Clemens,

Have you checked class CL_ABAP_MEMORY_UTILITIES?

Its have a documentation also.

May be this will help you out

a®

6 REPLIES 6
Read only

0 Likes
725

Hi venkat,

thank you so much for your links to solution of database questions.

Unfortunately, my question did not mention that it is not a question about databases.

Checking your links about

Note 84081 - Reorganization of database tables (RGZPFM),

Space Management with DB2 UDB for UNIX and Windows,

SAP Database Guide: Oracle (BC-DB-ORA-DBA) Reorganization

Database Administration in CCMS: MySQL MaxDB: Checking Available Data Memory Space

was a nice waste of time.

I hope you did not use as much time as I had to do, thank you

Question unsolved.

Regards,

Clemens

Read only

former_member194669
Active Contributor
0 Likes
726

Clemens,

Have you checked class CL_ABAP_MEMORY_UTILITIES?

Its have a documentation also.

May be this will help you out

a®

Read only

Former Member
0 Likes
725

If you use SM50, and click "Details" it give you some memory statistics for your program. You could periodically watch that to see if the memory consumption steadily goes up.

Read only

Clemenss
Active Contributor
0 Likes
725

Thanks a®s,

I think that's what I was looking for - tomorrow I will start to play around with it, see what we can get.

Regards,

Clemens

Read only

0 Likes
725

And also please check the possibility of using transaction code S_MEMORY_INSPECTOR (For creating memory snapshot for analysis)

a®