on 03-15-2013 12:30 AM
Hi, experts,
I function enhance a datasource, call a function module in exit.
originally, extract data consume a large number of memory, now, call the FM, need more.
use SM66 to monitor, after the FM finish, the memory isnt released, I think it should be released. because all variables is local in the FM.
I want to know why memory isnt released and where memory is consumed
then create memory snapshot before and after call FM via /HMUSA in debug,
then, compare memory snapshot via S_MEMORY_INSPECTOR, but find nothing related to my program
anybody could tell how to solve it and how to use S_MEMORY_INSPECTOR, many tks.
Best regards.
Hi J.D.,
If you use internal ABAP tables, use explicitly "free".
Basically on
Best regards,
Sylvia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi J.D.,
I am a bit confused. Actually you would not be able to see "what object consume the released memory" .. Only objects which are still alive are seen in the Memory Snapshot.
I assume you need something like "allocation trace" to see what is being allocated, before it was released, but I am not aware of such tool for ABAP.
Best regards,
Sylvia
Hi Sylvia,
you are right, so, i save memory snapshot via call command /HMUSA in debug before and after call FM.
Then call Tcode S_MEMORY_INSPECTOR to compare them, exceeded memory is displayed in red color.
but to be surprise, all red objects are standard. i cant find out z-object or global internal table related to my datasource, for example C_T_DATA etc.
you or anybody else could give me a demo of using S_MEMORY_INSPECTOR, tks a lot.
i will do a test again.
best regards.
Hi J. D.,
Unfortunatelly, it will be difficult to give demo.
SAP hopes that the official documentation
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/1f/aa212fe4844f0d8a56196a92938b69/frameset.htm
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/243804855616b6e10000000a42189d/content.htm
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/255a8a29ac16b7e10000000a42189d/content.htm
would hep you work sucessfully with the Memory Inspector.
Best regards,
Sylvia
Hi All,
I do a test scenario.http://scn.sap.com/thread/3332325
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why you decide that memory is not released? Where you check this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
many tks Sylvia,
I will read these links. then do a more detail test and feedback the result.
Best regards.
J.D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
help pls, tks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.