
ST05
(introduced in Use ST05 to Analyze the Communication of the ABAP Work Process with External Resources) explains the tool's inner workings and configuration options, and how they affect its behavior. With this knowledge, you can avoid some pitfalls that otherwise would make your performance analyses less convenient or less reliable.ST05
misbehaves. Then the tool's technical background as presented here does explain that ST05
actually works as designed.ST05
is protected by authorization object S_ADMI_FCD
, which checks accesses to various basis functions. It defines a single authorization field, also called S_ADMI_FCD
, for these system administration functions. The relevant values areST0M
Authorization to activate or deactivate trace recordingST0R
Authorization to analyze tracesST05
really is just a display transaction. The only changes it can trigger are via buttons Activate Trace and Deactivate Trace (and the closely related buttons Activate Trace with Filter and Deactivate Trace on All Instances). These actions modify the so-called SWitches Block (SWB) in the Shared Common System Area (SCSA), a small shared memory segment accessed by SAP executables (kernel programs). The SWB content determines whether tracing is on or off, which trace types (i.e., communication interfaces) are to be recorded, and what filter conditions shall be applied. The actual capturing of the communication events according to these settings is done by the ABAP kernel.ST05
cannot capture communication events triggered by distinct users (or by distinct user groups defined with a trailing wildcard *
).rstr/filename
(e.g., /usr/sap/YI3/D34/log/TRACE). New trace records are always stored into a file by exactly this name. When it is filled to its capacity (as defined in megabytes by profile parameter rstr/max_filesize_MB
; default value 16, maximum value 100), the file is renamed by appending a two-digit number between 00 and 99 to the base filename. If a file by that name already exists, it will be discarded. An empty file with the base filename is recreated, and trace recording into this newly created file continues without any gap. The maximum number of trace files (active plus overflow) is defined by profile parameter rstr/max_files
(default value 10, maximum value 99). If this number of files is exceeded, the oldest file is deleted, and recreated to act as the youngest overflow file. As a consequence of this round-robin approach, old trace records are eventually lost, and a trace may overwrite its own beginning if recording is active for too long, or if the traced application triggers a large number of recorded events. Depending on the specified filter conditions for trace recording (cf. my blog post ST05: Activate Trace Recording with Filter), on the traced load on the application server instance, and on the configured number and size of trace files, this may happen within just a few minutes.rstr/buffer_size_kB
(default value 500). If the size of a single statement (including its variables’ values) exceeds this limit, it will be truncated.ST05
to analyze your application's communication events.ST05
. The corresponding interfaces deal with authorization checks done by your applications, or with low-level calls to the kernel's C functions or C modules. You can control and analyze these trace types in transaction ST01
, together with the others, which are more frequently used and therefore accessible in ST05
.ST01
-only trace types. Thus, in rare cases your attempt to record a trace with ST05
may fail although the Trace State area on its start screen is empty. A popup will then explain the situation with an information message: At least one trace type was already activated for user <NN>. (This may be an ST01 trace.) The trace is not activated. You may want to discuss the situation with the given user.ST05
's start screen you can request that relevant communication activities shall be recorded together with their triggering ABAP call hierarchy (Stack Trace = On
). With the setting Stack Trace = Off
, which is the default in customer systems, only the immediate caller will be recorded.ST05
detects this situation and indicates it with a warning popup: Cannot fully display ABAP call hierarchy for statement of selected trace record. To avoid this type of problem, do not filter records when you display a trace taken with Stack Trace = On
. Prefer to set a filter already while tracing, which saves even more space in the trace files.On
increases the danger that a trace overwrites its own beginning.Name | Explanation | Default Value | Maximum Value |
rstr/accept_remote_trace | Accept trace switches from remote client? | FALSE | N/A |
rstr/auth_delim_tab | Use tabulator (instead of '&') as separator in authorization trace | TRUE | N/A |
rstr/buffer_size_kB | Size of trace buffers (one buffer per work process) | 500 | |
rstr/filename | Base name of the trace files | N/A | |
rstr/max_files | Maximum number of trace files | 10 | 99 |
rstr/max_filesize_MB | Maximum size of one trace file | 20 | 100 |
rstr/send_global_trace | Send global trace switches (together with user-specific settings) to remote server? | FALSE | N/A |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
12 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |