2008 Mar 31 1:00 PM
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
2008 Mar 31 4:05 PM
Clemens,
Have you checked class CL_ABAP_MEMORY_UTILITIES?
Its have a documentation also.
May be this will help you out
a®
2008 Mar 31 1:17 PM
hi ,
check note 84081
Check this URL
http://help.sap.com/saphelp_nw70/helpdata/en/08/5742d84ae611d1894f0000e829fbbd/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d6/8642a3b98e394d85ba59694b333506/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/32/0d0c888839164ba4245b3ff7969c59/frameset.htm
regards,
venkat.
2008 Mar 31 3:15 PM
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
2008 Mar 31 4:05 PM
Clemens,
Have you checked class CL_ABAP_MEMORY_UTILITIES?
Its have a documentation also.
May be this will help you out
a®
2008 Mar 31 4:18 PM
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.
2008 Mar 31 6:57 PM
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
2008 Mar 31 7:25 PM
And also please check the possibility of using transaction code S_MEMORY_INSPECTOR (For creating memory snapshot for analysis)
a®