25
SAP Basis Engineering a System monitoring for SAP System Page 1 of 25 Monitoring Document Revision History Date Version Description Author 5/9/2022 Version 1 Operational Manual Shashi Prakash Singh Created by:- Shashi Prakash Singh

Server Monitoring Document Basis

  • Upload
    snnagar

  • View
    63

  • Download
    5

Embed Size (px)

Citation preview

Page 1: Server Monitoring Document Basis

SAP Basis Engineering a

System monitoring for SAP System Page 1 of 23

Monitoring Document

Revision HistoryDate Version Description Author

4/7/2023 Version 1 Operational Manual Shashi Prakash Singh

Created by:- Shashi Prakash Singh

Page 2: Server Monitoring Document Basis

INTRODUCTION............................................................................................................................................................................ 3

SCOPE............................................................................................................................................................................................ 3

LOGIN TO SAP.............................................................................................................................................................................. 4

SERVER MONITORING............................................................................................................................................................... 7

CHECKING APPLICATION SERVERS (SM51)..................................................................................................................................... 7MONITORING WORK PROCESSES FOR INDIVIDUAL INSTANCES (SM50)............................................................................................7MONITORING SYSTEM WIDE WORK PROCESSES (SM66).................................................................................................................. 8MONITOR APPLICATION USER (AL08)............................................................................................................................................ 9MONITORING UPDATE PROCESSES (SM13).................................................................................................................................... 10MONITORING LOCK ENTRIES (SM12)........................................................................................................................................... 11MONITORING SYSTEM LOG (SM21).............................................................................................................................................. 12CPU UTILIZATION (ST06)............................................................................................................................................................ 14AVAILABLE SPACE IN DATABASE (DB02)..................................................................................................................................... 15CHECKING MISSING INDEXES (DB02)........................................................................................................................................... 16ABAP DUMP ANALYSIS (ST22)................................................................................................................................................... 17SPOOL REQUEST MONITORING (SP01).......................................................................................................................................... 18NUMBER OF PRINT REQUESTS (SPAD).......................................................................................................................................... 19MONITORING BATCH JOBS (SM37)............................................................................................................................................... 20BATCH INPUT SESSION LOCK (SM35)........................................................................................................................................... 21DATABASE PERFORMANCE MONITOR (ST04)................................................................................................................................ 21DATABASE CHECK (DB16)........................................................................................................................................................... 22CHECKING CORE FILE (ST11)................................................................................................................................................... 22

EXCEL SHEET FORMAT........................................................................................................................................................... 23

Page 3: Server Monitoring Document Basis

Introduction

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.

Scope

The document covers all the transactions which are being used for checking system health in order to arrest the problems before they actually occurs. After reading this document reader will have a fair idea about the process and the method followed for system monitoring. The main areas being covered in the document are as under :-

Checking Application Servers. Monitoring Application Users. Monitoring System wide Work Processes. Monitoring application User Monitoring Work Processes for Individual Instances. Monitoring Update Processes. Monitoring Lock Entries. Monitoring System Log. CPU Utilization Buffer Statistics Available Space in Database. Checking Missing indexes. Monitoring Batch Jobs Spool Request Monitoring. Number of Print Requests ABAP Dump Analysis. Database Performance Monitor. Database Check.

The document encompasses all the activities which are included in our business process and liable to change as and when new business process is introduced or change in the existing process.

Page 4: Server Monitoring Document Basis

Login to SAP

1. Select SAP Logon Icon from the desktop.

2. System list pops up.

Page 5: Server Monitoring Document Basis

3. Select the system name from the list and double click.

4. Enter User ID and Password here.

5. You are logged in.

After logging in system displays screen as below.

Page 6: Server Monitoring Document Basis

To run any transaction we need to write transaction code in Command Field.

Server Monitoring

Checking Application Servers (SM51)

This transaction is used to check all the active application server.

Page 7: Server Monitoring Document Basis

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 process, the process status should always be waiting or running. If any process is having status other then waiting or running we need to check that particular process and report accordingly.

Monitoring System wide Work Processes (SM66)We can quickly investigate the potential cause of a system performance problem by checking the work process load and can use the global work process overview to:

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

Identify locks in the database (lock waits).

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

Page 8: Server Monitoring Document Basis

The status of each application server

The reason why it is not running

Whether it has been restarted

The CPU and request run time

The user who has logged on and the client that they logged on to

The report that is running

We record only those processes which are showing problems and not having running status.

Monitor Application User (AL08) This transaction displays all the users of active instances.

Page 9: Server Monitoring Document Basis

We record total number of users in our log.

Monitoring Update Processes (SM13)Execute Transaction SM13 and put * in the field USER.This transaction is used to check the following activities:

1. Is the update active, if not , was it deactivated by system or by user.2. Have any update been cancelled.3. Is there a long queue of pending updates older than 10 minutes.

Page 10: Server Monitoring Document Basis

Monitoring Lock Entries (SM12)Execute Transaction SM12 and put * in the field User NameWe 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 previous day.

Page 11: Server Monitoring Document Basis

Monitoring System Log (SM21)We can use the log to pinpoint and correct errors occurring in the system and its environment. We check log for the previous day, and time is entered as shown in the screen below. Then select Radio Button Problems and Warnings and press Reread System Log.

Page 12: Server Monitoring Document Basis

We write total number of records, as shown in the screen below, in our log and analyze the problems which are not displayed in ST22.

Page 13: Server Monitoring Document Basis

CPU Utilization (ST06)

In CPU Utilization we record User, System, Idle and Wait percentage utilization from the above screen.

Page 14: Server Monitoring Document Basis

Available Space in Database (DB02)

Space statistics are taken from the below screen and we record Total Size in GB and Total free space in percentage.

Page 15: Server Monitoring Document Basis

Checking Missing indexes (DB02)At the same screen missing indexes statistics can also be checked by pressing Missing Indexes button, below screen pops up. Record primary and secondary missing indexes.

Page 16: Server Monitoring Document Basis

ABAP Dump Analysis (ST22)Here we check for previous day’s dumps.

Open the details log of each and every dump by double clicking it and try to find out any suitable notes, analyze them and propose suitable solution as per SAP standards.

Page 17: Server Monitoring Document Basis

Spool Request Monitoring (SP01)In spool request monitoring execute sp01 and put * in the field Created By and press execute button.

Here we record only those requests which are terminated with problems.

Page 18: Server Monitoring Document Basis

Number of Print Requests (SPAD)Execute SPAD and press Admin button.

Now select Print Request Overview button.

Page 19: Server Monitoring Document Basis

Record Total Print Requests from below screen.

Monitoring Batch Jobs (SM37)Execute SM37 and put * in the field User Name record number of Scheduled, Cancelled, Released and Finished requests.

Page 20: Server Monitoring Document Basis

Batch Input Session Lock (SM35)Execute SM35 and press Locked Button. Record number of requests displayed.

Database Performance Monitor (ST04)Record Quality %, if its is >=95 write 0 else write actual percentage displayed.

Page 21: Server Monitoring Document Basis

Database Check (DB16)Record all the Errors and Warnings, analyze the cause and propose solution.

Page 22: Server Monitoring Document Basis

Checking CORE file (ST11)Execute ST11 and search for core file. Record the actual file size in the log.

We have to check each and every instance shown in SM51 for the for core file.

Excel Sheet Format.

Below is the format for recording all the entries we have discussed until now.

Page 23: Server Monitoring Document Basis

  Servers/TC SP2     T.Code System Monitoring

 

SM51 Checking all application servers are up 5 ActiveAL08 Monitor SAP Application User 165SM66 Monitor SAP System wide work process 0

SM50Monitor SAP System work process for individual instances

PID 462596 stopped for long time (17533)

SM13 Monitor SAP Update Process 2SM12 Monitor SAP Lock Entries 77SM21 Monitor SAP System Log 2774 RecordsST06 CPU Utilization (User/System/idle/io wait) % 22/9/23/46ST02 Monitor SAP Buffer statistics AnalyzingDB02 Check SAP Available space in Database(Total/Free) 1031 GB/8 %T. Code

ABAP Dumps Analysis 

ST22 ABAP Short Dumps 15 DumpsT. Code

SAP Work load Analysis (Performance Monitoring) 

DB02 Missing Indexes 1 IndexDB16 Database check 0 Warnings ST04 DB Performance Monitor 0T. Code

Batch Jobs Administration 

SM37 Monitor the batch job status( Scheduling) 321SM37 batch job Cancelled 0SM37 batch job Released 13SM37 batch job Finished 1616SM35 Batch Input :Session Locked 0T. Code

Spool Administration 

SP01 Spool output request for error 0SPAD No. of Print request 44690