Hi All,
This is my first blog and thought of writing it on day to day issues which each Basis consultant faces like Slowness/poor performance of SAP system. Generally this issue is reported by End Users.
Performance of SAP system is depended on so many things. Hardware, OS, storage box, storage agent, clustering agent, database, customized (Z) programs and overall the usage intelligence of the users and the configuration/installation done initially.
Here are the few things which can be taken into consideration while fine tuning your SAP system
PERFORMANCE TUNING-:
The response time is usually split into wait plus execution time. The SAP response time is made up of the following components.
Response time = Wait time + Execution time
Where, Execution time = Generation time during the run.
+ Load time for programs, screens and the graphical interface
+ Roll time for rolling in the work data [Rollin and Rollout]
+ ABAP Processing time
+ Database time
+ Enque time for Logical SAP lock processes
+ CPIC/RFC time.
The CPU time is not an additive component of the response time, but the total of the individual components of the utilized CPU time. The CPU time is therefore an additional, independent piece of information about the response time.
SAP GUI time is not a part of the response time.
RESPONSE TIME-:
The time taken by the user request to process the users task right from the dispatcher to database.
OR
Time taken by the Work Process to serve user requests.
If GUI time > 200ms then consider the following-:
2. ROLL-IN TIME-: The time taken by the work process to roll-in the user context into its task handler.
3. ROLL-OUT TIME-: The time taken by the work process to roll-out the user information into user context before sending the response to the user.
Roll-In time/Roll-Out time >50ms
4. CPU TIME-: The amount of time the work process utilizes the CPU resources while processing the request.
CPU Time >40% [response time – wait time = execution time]
Identify the Expensive ABAP programs in ST03n. If required execute SE30/ST30
for runtime analysis of ABAP programs.
5. PROCESSING TIME-: The time taken to process the user request.
Processing time >2 * CPU time [Twice the time of CPU]
Then consider processing of screens, ABAP and SQL is expensive and tune the ABAP programs, SQL Screens and SQL Statements.
LOAD AND GENERATION TIME > 200ms
Processing the response from buffers or load and generating the response from
database is expensive MONITOR ST02.
If it is periodical then check the interface/gateway/RFC
connections or the target system resources.
It is also the time taken by the dialog process to communicate with message server and the message with enque server process when the dialog process is coming from other dialog instances.
ENQUEUE TIME > 5ms on CENTRAL INSTANCE
> 100ms for request that is coming from dialog
instances.
Increase the enque work processes if required. Increase the size of enque table if
required, when the enque lock table overflows.
DATABASE TIME > 40% EXECUTION TIME
WORK LOAD ANALAYSIS
Spool statistics-: It displays the number of spool requests, amount of data etc.
Response time distribution specifies the response time comparison with dialog steps [in sec] where average response time is in milliseconds.
ST03N
USER AND SETTLEMENT STATISTICS
FRONT END STATISTICS-:
BUFFERS-:
BUFFER MECHANISM-:
SWAPS-:
The content is swapped if there are no free directories or space based on LRU [Least recently used content]
i.e. the content which is idle and not accessible [based on the time stamp] will be swapped out. It is recorded in ST02.
ST02 Analysis-:
It displays the following information-:
Click on parameters to display the parameters.
ABAP/Buffer size is used to configure the size for ABAP programs which can be configured up to 1500mb [1.5 GB]
Click on Detail Analysis Profile click on buffering criteriaà to display the parameters and Buffered Objects.
Buffer Hit Ratio = Total number of requests – total DB records
------------------------------------------------------ X 100 [Formula to calculate the Buffer Hit Ratio]
Number of requests
OR
Number of Hits
------------------- X 100
Number of requests
TABLE BUFFERING-:
The SAP tables and their content is buffered in R/3 based on settings in SE13.
By default the following options are provided in SE13.
The tables which are large, transactions are not eligible
for buffering e.g. VBAK etc.
2. Buffering Allowed-:
Buffering allowed but switched off-:
The table buffering is allowed for these tables but it is switched off in DEV and QAS for technical reasons which can be enabled by the customer.
Buffering-:
It improves the response time of the instance by caching the frequently accessed content. When more than one application server (instance) is configured, then the buffering between the instances need to be synchronized else it is possible to get different response from the instance.
rdisp/bufreftime=60 seconds which will synchronize the buffers between instances.
rdisp/bufrefmode= send on, exe auto
The default setting send on, exe auto means that the buffer synchronization is activated.
Send off, exe off deactivates the buffer, synchronization.
Note--> Review the system for couple of days, before making any predictions
E.g. A transaction is executed in 10 mins for the first time
600000
--------- Milliseconds for 1step = 30ms
20000
RECOMMENDATIONS-:
If the swaps are more then we can consider the following-:
You can also run T-code ST04, will discuss about this in the next blog.
Regards
Samarjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 | |
1 |