
Activate the performance trace if duration information for actions is to be written, where actions are comparable to the transaction steps of an SAP System. If, for example, the Global Workload Monitor shows that the average response time of an application is too high, you should activate the trace to find the cause.
Unlike the statistics, the performance trace has the advantage that the J2EE Engine appears transparent and the process durations for the individual modules of the Engine can be measured. This means that the trace provides a finer view of the processes in the J2EE Engine (see Performance Trace Recordings ).
The performance trace can be activated using the Visual Administrator of the J2EE Engine, from the command line, or by setting the TraceFlag indicator of an external passport.
Activating the Trace Using the Visual Administrator
You can start the trace using the DSR service in the Visual Administrator. To do this, follow the procedure below:
A tab page with the following J2EE Engine modules appears:
In the Usercolumn, you can enter a user name for each trace module for which trace data is to be collected. Otherwise, the trace is written for all users.
Activating the Trace Using the Console
You can activate the performance trace using the console. To do this, you must include the command group dsr with the command add dsr . The command group makes various shell commands available to you:
In the current command shell, you cannot set a user filter and activate or deactivate the performance trace at the same time. For example, the input trace -on -user Smith -modules "< module_name >" is not allowed.
Activating the Performance Trace Using the Passport
The passport contains the TraceFlag indicator, with which you can set the performance trace. So that there are not misunderstandings between the trace settings in the performance tracing service and the TraceFlag indicator, the system differentiates between a passport that was created within the J2EE Engine and one that was forwarded to the J2EE Engine from another component:
If the indicator is set in an external passport, the trace only remains active for the duration of the request. If you want to activate the trace over multiple requests, you must reset the indicator in the passport for each call.
You have activated the performance trace. For more information, see Performance Trace Recordings
You can use the functional trace (transaction STATTRACE) to display performance traces in the central monitoring system. For more information, see Functional Trace