SAP Monitoring & Performance Checks: Complete Tutorial with Tcodes

What is System Monitoring?

System monitoring is a daily routine activity and this document provides a systematic step by step procedure for Server Monitoring. It gives an overview of technical aspects and concepts for proactive system monitoring. Few of them are:

Some others are:

Why Daily Basic checks / System Monitoring?




How do we do monitor a SAP System?


Checking Application Servers (SM51)


This transaction is used to check all active application servers. Here you can see which services or work processes are configured in each instance.

Monitoring Work Processes for Individual Instances SM50:


Displays all running, waiting, stopped and PRIV processes related to a particular instance. Under this step we check all the processes; the process status should always be waiting or running. If any process is having a status other than waiting or running we need to check that particular process and report accordingly. This transaction displays a lot of information like:

  1. Status of Work process (whether it's occupied or not)
  2. If the work process is running, you may be able to see the action taken by it in the Action column.
  3. You can which table is being worked upon

Some of the typical problems:

Monitoring System-wide Work Processes (SM66)

By checking the work process load using the global work process overview, we can quickly investigate the potential cause of a system performance problem.

Monitor the work process load on all active instances across the system

Using the Global Work Process Overview screen, we can see at a glance:

Monitor Application User (AL08 and SM04)

This transaction displays all the users of active instances. Execute Transaction SM13 and put '*' in the field USER and click on SAP Monitoring & Performance Checks: Complete Tutorial with Tcodes button.
  If there are no long pending updates records or no updates are going on then this queue will be empty as shown in the below screen shot.
 

  • Is any update cancelled?
  • Is there a long queue of pending updates older than 10 minutes?

  • Monitoring Lock Entries (SM12)

    Execute Transaction SM12 and put '*' in the field User Name SAP provides a locking mechanism to prevent other users from changing the record that you are working on. In some situations, locks are not released. This could happen if the users are cut off i.e. due to network problem before they are able to release the lock.

    These old locks need to be cleared or it could prevent access or changes to the records.

    We can use lock statistics to monitor the locks that are set in the system. We record only those lock entries which are having date time stamp of the previous day.
     

    Monitoring System Log (SM21)

    We can use the log to pinpoint and rectify errors occurring in the system and its environment.
    We check the log for the previous day with the following selection/option:

    Step 1: Go to ST02 to check the Tune summary.

    Step 2: If you see any red values, in SWAPS, double –click the same.
      Step 3: In the below screen click on the tab 'Current Parameters'
      Step 4: Note down the value and the Profile parameters
      Step 5: Go to RZ10 (to change the Profile parameter values)

    Step 6: Save the changes.

    Step 7: Restart the server to take the new changes effect.
     

    CPU Utilization (ST06)


    Idle CPU utilization rate must be 60-65%, if it exceeds the value then we must start checking at least below things:

    ABAP Dumps (ST22)

    Here we check for previous day's dumps


    Spool Request Monitoring (SP01)

    For spool request monitoring, execute SP01 and select as below:


    Here we record only those requests which are terminated with problems.
      For Monitoring background jobs, execute SM37 and select as below: Transactional RFC (tRFC, also originally known as asynchronous RFC) is an asynchronous communication method which executes the called function module in the RFC server only once.
      We need to select the display period for which we want to view the tRFCs and then select '*' in the username field to view all the calls which have not be executed correctly or waiting in the queue.
     

    QRFC Administration (Outbound Queue-SMQ1)

    We should specify the client name over here and see if there any outgoing qRFCs in waiting or error state.

    SAP Monitoring & Performance Checks: Complete Tutorial with Tcodes

    QRFC Administration (Inbound Queue-SMQ2)

    We should specify the client name over here and see if there any incoming qRFCs in waiting or error state.

    Database Administration (DB02)

    After you select Current Sizes on the first screen we come to the below screen which shows us the current status of all the tablespaces in the system. If any of the tablespaces is more than 95% and the auto extent is off then we need to add a new datafile so that the database is not full.
    We can also determine the history of tablespaces.

    SAP Monitoring & Performance Checks: Complete Tutorial with Tcodes
    From this transaction, we could determine when the last successful backup of the system was. We can review the previous day's backups and see if everything was fine or not.

    We can also review the redo log files and see whether redo log backup was successful or not.
      Daily Monitoring Tasks

    1. Critical tasks
    2. SAP System
    3. Database

      Critical tasks

      No

    Task Transaction Procedure / Remark

    1

    Check that the R/3System is up.   Log onto the R/3 System
    SAP System

    No

    Task Transaction Procedure / Remark

    1

    Check that all application servers are up. SM51 Check that all servers are up.

    2

    Check work processes (started from SM51). SM50 All work processes with a “running” or a “waiting” status

    3

    Global Work Process overview SM66 Check no work process is running more than 1800 second

    3

    Look for any failed updates (update terminates). SM13
    • Set date to one day ago
    • Enter * in the user ID
    • Set to “all” updates Check for lines with “Err.”

    4

    Check system log. SM21 Set date and time to before the last log review. Check for:
    • Errors
    • Warnings
    • Security messages
    • Database problems

    5

    Review for canceled jobs. SM37 Enter an asterisk (*) in User ID.Verify that all critical jobs were successful.

    6

    Check for “old” locks. SM12 Enter an asterisk (*) for the user ID.

    7

    Check for users on the system. SM04AL08 Review for an unknown or different user ID and terminal.This task should be done several times a day.

    8

    Check for spool problems. SP01 Enter an asterisk (*) for Created ByLook for spool jobs that have been “In process” for over an hour.

    9

    Check job log SM37 Check for:
    • New jobs
    • Incorrect jobs
    11 Review buffer statistics. ST02 Look for swaps.

    Database

    No

    Task Transaction Procedure /  Remark

    1

    Review error log for problems. ST04
     
    What is Partner Function? Partner   function is two-character identification key that describes the...