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

Checking Memory consumption

Former Member
0 Likes
679

Hello gurus,

Can anybody point me to some documentation/link that shows how to analyze the memory usage (consumption of memory) at different stages of a program execution. We are running some programs that has to set an indicator for some historical data and running into some memory issues and the memory is not freed up even after releasing the object references and using all possible ABAP statements to release memory.

I want to analyze the program by running it in debug mode and check how the memory is being consumed/refreshed in an online execution. I tried analyzing using SM50, but I think my approach is incorrect. Can somebody help?

Thanks,

Raja

3 REPLIES 3
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
585

Hi Raja,

the debugger is a very good starting point.

in the new deugger display the memory analysis tools (you can find it in new tool, special tools) and check the

top memory consumers at various points during program execution.

Alternatively you can create snapshots (services of the memory analysis tools or with method WRITE_MEMORY_CONSUMPTION_FILE( ) of class CL_ABAP_MEMORY_UTILITIES (but don't do it in loops or too often) and use S_MEMORY_INSPECTOR to analyze and compare these snapshots.

Kind regards,

Hermann

Read only

0 Likes
585

Thank you both... Herman and Mahalakshmi. I figured out some good ways to use the transactions and classes SAP supplied for analyzing memory utilization.

Herman: Your answer was useful and I learnt it the hard way.

Maha: Thanks for the wonderful document.

Raja