Translate

Resetting the buffers

This is how to reset different buffers in SAP.

       One can run the following in SAP command field.
       /$SYNC      – Resets the buffers of the application server
       /$CUA         – Resets the CUA buffer of the application server
       /$TAB         – Resets the TABLE buffers of the application server
       /$NAM        – Resets the nametab buffer of the application server
       /$DYNP      – Resets the screen buffer of the application server
       Caution: Resetting of the buffers could change the performance of the entire system.
 
 
Architecture

  • To complete the logon process, the presentation server connects with a dispatcher.
  • When the user tries to run a transaction, the user’s request comes from the presentation server to the dispatcher and is put into the local wait queue.
  • When the dispatcher recognizes that a work process is available, the user’s request is taken from the wait queue and sent to the work process
  • When a user is dispatched to a work process, “user context” data – the user’s logon attributes, authorizations, and other relevant information – is transferred from the roll buffer, extended memory, or the roll file into the work process. This transfer (by copying or mapping, as appropriate) of user context data into work process memory is the mechanism known as a “roll in”.  Transaction processing then begins. 
  • If data from the database is required to support transaction processing, a request for data is sent to the database interface, which in turn sends a request through the network to retrieve the information from the database.
  • When it receives the request, the database searches its shared memory buffers. If the data is found, it is sent back to the work process. If the data is not found, it is loaded from the disk into the shared memory buffers.
  • After being located, the data is taken from the shared memory buffers and sent back across the network to the requesting database interface. Transaction processing resumes. 
  • Before accessing the database service, the database interface searches for the data in the R/3 buffers. If the data is found, it is relayed back to the work process where processing resumes. If the data is not found, the database interface sends a request over the network to retrieve the information from the database 
  • If the data loaded from the database is eligible for R/3 buffering, it is placed in the R/3 buffers. Transaction processing resumes. 
  • When transaction processing is completed, the dispatcher is notified of its completion. The results of the transaction are then sent back to the presentation server. 
  • After the transaction finishes and the work process is no longer required, the user context data is rolled out of the work process. 
  • CPU time is the amount of time during which a particular work process has active control of the central processing unit (CPU). 

 Performance AnalysisKey transaction for Performance monitoring in R/3

Work Process  SM50/SM66
Operating system monitoring  ST06
Workload analysis, use the Workload Monitor (transaction ST03 or ST03N).
Database monitoring ST04
Setup and buffer ST02


Workload time statistics include:

  • Response time in milliseconds: Starts when a user request enters the dispatcher queue; ends when the next screen is returned to the user. The response time does not include the time to transfer from the screen to the front end.
  • Wait time in milliseconds: This is the time a user request sits in the dispatcher queue. It starts when user request is entered in the dispatcher queue; and ends when the request starts being processed.
  • Roll-in time in milliseconds: The amount of time needed to roll user context information into the work process.
  • Load time in milliseconds: The time needed to load from the database and generate objects like ABAP source code, CUA, and screen information.
  • Processing time: This is equivalent to response time minus the sum of wait time, database request time, load time, roll time, and enqueue time.
  • Database request time: Starts when a database request is put through to the database interface; ends when the database interface has delivered the result.
  • CPU time in milliseconds: This is the CPU time used by the R/3 work process
If a problem is detected, the data in the Workload Monitor (Transaction ST03N) can be used as follows to identify the area of the system where the problem is located.
First check for general performance problems affecting all transactions. Good general  performance is normally indicated by:


  • Wait time < 10% response time
  • Main menu (choose Transaction Profile) < 100 ms
  • In the Workload Monitor, the following values normally indicate good performance:
  • Average roll-in time < 20 ms
  • Average roll wait time < 200 ms
  • Average load (and generation) time < 10 % of response time (<50 ms)
  • Average database request time < 40 % of (response time – wait time)
  • Average CPU time < 40 % of (response time – wait time)
  • Average CPU time Not much less than processing time
Average  response time – Depends on customer requirements – there is no general rule
Large roll wait time – Communication problem with GUI
Large load time – Program buffer, CUA buffer or screen buffer too small
Large DB time – CPU /mem bottleneck on DB server, Expensive SQL statement, missing indexes, small buffer, missing statistics.


IF wait time >10%
            High database time >40% (response time – wait time) – Analyze database
            Processing time > CPUtime *2 – Analyze hardware
            Load time >50 ms – Analyze R/3 memory config ( program buffer too small)
            Roll in / roll out time >20 ms – Analyze R/3 mem config (extended mem or roll buffer)
 

SAP Performance and Tuning Tools

Any time you must have come across some performance issue with your SAP System, So here i am mentioning some approach that you can follow to avoid the same….

Most Commonly Used Tools and Monitors –AS ABAP
1) Hardware : Application server
OS06 (ST06), OS07
2) Database Gener DBACOCKPIT
DB accesses ST10 ST05, STAD


3) Application :
Shared memory & buffers ST02, SHMM
User memory analysis SM04 S_MEMORY_INSPECTOR
Work process overview SM50, SM66
Workload analysis ST03N STAD
Enqueue monitoring SM12 ST05 4) Communication
HTTP traffic SMICM, ST03G
Remote Function Calls ST03N ST05
Most Commonly Used Tools and Monitors –AS JAVA :
1) Hardware :Application server OS06 (ST06), OS07, SAP MC
2) Database: General DBACOCKPIT, DB02 (Java schema)
DB accesses NWA: Open SQL Monitors, Wily Introscope, SAP JVM Profiler
3) Application: Global Buffers and Caches –> SAP MC, NWA: Open SQL Monitors
JAVA runtime–>Wily Introscope, SAP JVM Profiler
User memory analysis SAP JVM Profiler
Server nodes / thread overview NWA: Operations Management, SAP MC
Workload analysis Wily Introscope
Enqueue monitoring NWA: Open SQL Monitors, SAP MC
4) Communication: HTTP traffic –> HTTPwatch, NWA, SAP MC
Remote Function Calls –> NWA, SAP JVM Profiler, Wily Introscope

 

 

 

1 comment:

Gadget Sick said...

Fire sticks are the most renowned gadgets that are known to man. They are widely known for their functions and the features they provide. But sometimes it can be really annoying to see that when you are trying to use and fire stick buffering problem disturb you.

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall