Professional Documents
Culture Documents
A Developer's Guide To Protecting Memory
A Developer's Guide To Protecting Memory
Technical Column
4 Note!
Memory Inspector
functionality available
in SAP NetWeaver
7.0. ABAP Memory
Inspector is also
available in SAP
NetWeaver 6.20
support package 29,
SAP NetWeaver 6.40,
SAP NetWeaver 7.0,
and later releases.
See What You Dont Know About Memory Can Hurt You: A (Re)introduction
to Efficient Memory Computing for Programmers and Developers in the
October-December 2007 issue of SAP Insider (www.SAPinsideronline.com).
Transaction SM04
Please note: In these detailed lists, overall memory is broken down into four internal categories: Roll,
Page, Mem(Total), and Mem(Priv.). To obtain the overall memory usage, add these values together.
consumption of a
There are several ways to trigger a memory snapshot. For SAP GUI transactions, the easiest way is
to use the System menu available in all SAP
GUI-based screens through the path System Utilities
Memory Analysis Create Memory Snapshot.
To take a memory snapshot of a non-SAP GUI
application or to take the snapshot when the maximum memory consumption is reached (during the
processing of a screen, for example), you will have to
use the ABAP Debugger.
The main difference between ABAP memory snapshots and those taken in
the Java VM (called heap dumps in the Java world) is that, in the ABAP VM,
the content of one particular user session can be analyzed separately,
whereas the Java heap dump contains the memory objects of the whole VM.
TYPE STRING)
ABAP objects or class objects (such as a class
created by the CREATE OBJECT statement)
Anonymous data objects (such as a data type
created by the CREATE DATA statement)
4 Note!
Snapshot. Memory
snapshots created
this way only contain
memory objects of
KeyTerms
See Key Terms box or the online version of this article for more details.
BONUS ONLINE-
more information
about memory
considerations, see
AdditionalResources...
...from
The Managing your SAP Data 2008 conference in Marseilles, October 28-30,
2008, and Las Vegas, November 17-19, 2008, for strategies to evaluate and
improve your data management processes (www.sapdata2008.com)
Analyze Memory-Related Problems in Your ABAP Programs in Less Time and
with Less Effort Using the ABAP Memory Inspector by Christian Stork and
Wolf Hagen Thmmel (SAP Professional Journal , November/December 2004,
www.SAPpro.com)
What You Dont Know About Memory Can Hurt You: A (Re)introduction to
Efficient Memory Computing for Programmers and Developers, a Performance
& Data Management Corner column by Winfried Schleier (SAP Insider ,
October-December 2007, www.SAPinsideronline.com)
SAP Performance Optimization Guide (5th edition) by Thomas Scheider
(SAP PRESS, www.sap-press.com)