Track Down the Root of Performance Problems with Transaction ST05

When you have invested in hardware and software to support your business processes, you want to ensure that they are running optimally. Otherwise, you risk making your end users less efficient or seeing your IT costs rise. For these reasons, performance optimization projects will always be important. Download the Document

Performance & Data Management CornerCOLUMN58 Subscribe today. Visit sapinsider.wispubs.com.When you have invested in hardware and soft-ware to support your business processes, you wantto ensure that they are running optimally. Other-wise, you risk making your end users less efficientor seeing your IT costs rise. For these reasons,performance optimization projects will always beimportant. Tuning your software solutions will sig-nificantly improve the return on investment (ROI)for your IT infrastructure. Before you can tune anapplication, though, you need to identify wherethe issues are coming from.For example, for SAP solutions based on theSAP NetWeaver client-server architecture, mostof the business logic is executed by the work pro-cess. To accomplish its tasks, the work process mayneed to call external resources, especially the data-base. Understanding the details of such requests iscrucial for tuning the performance of individualapplications. Requests to shared central resourcesin particular must be limited to the absolute mini-mum and must be optimized as much as possible.With the Performance Trace (transactionST05), you can determine the origin of issues inyour applications. This transaction is a tool forrecording requests that leave or enter the workprocess (these recordings are called traces) andthen displaying the trace records as a list. It alsoprovides extensive support for examining indi-vidual trace records.In this article, I will explain how to use ST05and what to look for when analyzing the results.11 The example in this article uses the SQL trace (which allowsyou to investigate database accesses) to demonstrate thecapabilities of ST05. Additional trace types cover accessto various buffers (most notably the table buffers) in theapplication server’s shared memory, outgoing or incomingrequests using RFC or HTTP, and calls to the enqueue server.These traces can be used in a similar way to the SQL trace.Track Down the Root ofPerformance Problemswith Transaction ST05by Manfred Mensch, SAP AGRecording a TraceTo access the Performance Trace, you can usetransaction code ST05 or, since it is fully inte-grated into the ABAP Workbench, you can accessit from the workbench by following the menupath System Utilities Performance Trace.To record a trace, open the ST05 start screen(see Figure 1 on page 60), use the check boxesin the Select Trace Type frame to choose thetrace type(s), and choose Activate Trace to switchthe selected trace type(s) on. Once you’ve acti-vated the trace, you can then run the applica-tion you want to analyze on the server wherethe trace was activated. When the applicationis finished, choose Deactivate Trace to stopthe recording.When running a trace, it’s important to keep acouple of things in mind: On an application server, only one user at atime can record traces. Tracing for long periods of time may lead toincomplete traces with missing beginnings.This is because traces are written to dedicatedfiles on the application server; when all tracefiles are full, the oldest file is deleted and a newfile is created.Analyzing a TraceOnce you’ve recorded your trace, the next step isto analyze it, looking for bugs, issues, and areasthat need performance improvements.To view a trace, choose Display Trace (referto Figure 1) on the server where the trace wasrecorded and, in the subsequent selection screen,specify any criteria for filtering the records to bedisplayed. The standard trace display is a chrono-logically sorted list of main records. Each recordManfred Mensch (manfred.mensch@sap.com) studiedphysics and mathematics atthe University of Karlsruhe.He received his Ph.D. inenvironmental physicsfrom the University ofHeidelberg. After furtheryears of research in the USand in Germany, he joinedSAP in 2000 and has been amember of the Performanceand Scalability team since2006. His responsibilitiesinclude supporting his col-leagues in SAP’s OnDemandorganization by coachingand consulting with respectto performance during thedesign, implementation,and maintenance phases oftheir software. Currently,Manfred is focusing on thedevelopment of trainings andperformance analysis tools.This article appeared in the Jul n Aug n Sep 2013 issue ofSAPinsider (http://sapinsider.wispubs.com) and appearshere with permission from the publisher, WIS Publishing.