1_sap basis daily monitoring tcodes

76
SAP Basis Daily Monitoring Tcodes Proactive monitoring of the SAP systems, will help to understand issues in advance & helps us to take corrective actions and thus will lead to lesser downtime of the systems, improving profitability of the business organisation. Monitoring can be focused on ABAP stack(including database checks), Java Stack and Oslevel checks. ABAP Stack Checks : SM50 : (Process Overview) This transaction code will be useful to view the processes that are running currently in an sap insance. In this view you can check whether there are free workprocesses to execute the processes. If all the workprocesses are in running state and no work process is idle it means that wait times will increase for the processes that are waiting in the dispatcher queue leading to performance degradation. If you find that there are no free workprocceses for maximum times that you may consider, increasing the number of workprocesses. How to increase the number of work processes How to change the number of workprocesses This article answers the following queries: What is a workprocess ? What are the different types of workprocesses and their functionality ? How to increase/decrease the number of workprocesses?

Upload: -

Post on 08-Dec-2015

180 views

Category:

Documents


20 download

DESCRIPTION

Daily Monitoring Tcodes

TRANSCRIPT

Page 1: 1_SAP Basis Daily Monitoring Tcodes

SAP Basis Daily Monitoring Tcodes

Proactive monitoring of the SAP systems, will help to understand issues in advance & helps us to take corrective actions and  thus will lead to lesser downtime of the systems, improving profitability of the business organisation.

 Monitoring can be focused on ABAP stack(including database checks), Java Stack and Oslevel checks.

ABAP Stack Checks :

SM50 : (Process Overview)

This transaction code will be useful to view the processes that are running currently in an sap insance. In this view you can check whether there are free workprocesses to execute the processes. If all the workprocesses are in running state and no work process is idle it means that wait times will increase for the processes that are waiting in the dispatcher queue leading to performance degradation. If you find that there are no free workprocceses for maximum times that you may consider, increasing the number of workprocesses.

How to increase the number of work processes

How to change the number of workprocessesThis article answers the following queries:

What is a workprocess ? What are the different types of workprocesses and their functionality ? How to increase/decrease the number of workprocesses?

**************************************************************************

A work processes is used to execute a particular type of job in an sap system.

There are different types of workprocesses as mentioned below :

Page 2: 1_SAP Basis Daily Monitoring Tcodes

DIA   (Dialog workprocess) :  Used for execution of dialog steps triggered by active users. For every dispatcher atleast 2 dialog workprocesses to be configured

UPD   (Update workprocess) :  Used for execution of update tasks. Atleast one update workprocess to be configured per SAP system. Also, more than one UPD can be configured for a dispatcher

BTC   (Background workprocess):  Used for executing background jobs. Atleast 2 background workprocesses to be configured for an SAP system

SPO     (Spool workprocess) :  Used for passing sequential data to printers. Atleast one spool workprocess to be configured for an sap system.

UP2     (Update2 workprocess) :  This is similar to UPD workprocess. There is small difference in functionality based on criticality of the update.

ENQ   (Enqueue workprocess) :  This is required to administer locktable in the shared memory. Locktable contains database locks for ABAP stack of an sap system. Only one enqueue process to be configured for an SAP system.

To increase/decrease the number of workprocesses, value to be changed accordingly for the following parameters as per workprocess in RZ10 Transaction.

rdisp/wp_no_dia  (for dialog workprocess)rdisp/wp_no_btc  ( for background workprocess)rdisp/wp_no_spo  (for spool workprocess)rdisp/wp_no_enq  (for enqueue workprocess)rdisp/wp_no_vb    (for update workprocess)rdisp/wp_no_vb2  (for update2 workprocess)

In RZ10 transaction, select the profile of the instance, for which workprocess number to be changed and edit the profile through extended maintenance and save the changes done and activate the profile.

Please note that as this parameter is not dynamic one, restart of the application server is required for the changes to become effective.

Page 3: 1_SAP Basis Daily Monitoring Tcodes

What is the difference between dynamic and static parameter

What is the difference between dynamic and static parameterThis article answers following queries :

What is a SAP parameter? Different types of SAP Parameters? How to identify whether a parameter is dynamic or static ?

************************************************************************

In SAP, parameters are used to set the configuration and define the functionality of an sap system like number of workprocesses, buffer size, locktable size etc.

Basically there are 2 types of parameters :

Static DynamicStatic are the parameters those won't take effect immediately the value is set. Restart of an sap system is required for them to take effect.

Dynamic are the parameters those will take effect immediately in the run time. Restart of an sap system is not required for them to take effect.

Parameter can be differentiated whether it is dynamic or static by checking in RZ11 transaction of SAP.

Page 4: 1_SAP Basis Daily Monitoring Tcodes

 In Rz11, type the parameter and display it. In the screen , there will be a check box with description as "Dynamically switchable". If that check box is ticked, it means that it is dynamic parameter and value can changed in run time without restart of the system. If it is not ticked, then it is static parameter and it needs restart of a sap system for the changes to take effect. 

SM66 : (Global process overview)

This transaction code will be useful to view the processes that are running across all instances/application servers of a SAP system. Similar to SM50 checks can be done in this transaction as well.

Page 5: 1_SAP Basis Daily Monitoring Tcodes

SM51 : (Application servers status)

This transaction code will be useful to view all the hostnames and application servers status. If any application server is down, the same can be identified using status of the server column. We can also figure out different Message types (Dialog, Batch, Update, Upd2, Spool, ICM etc) configured for the respective servers.

SM12 : (Lock entry list)

This transaction code will be useful to view all the sap locks that are present in the system. As part of monitoring, we need to look for any old sap locks that are more than 1 day. If any such locks, we need to analyse the reason for that lock for such longer duration and take actions accordingly. A lock can be set for such a long duration due to a long running background job or a lock is not released due to an application error or a program terminated abruptly but lock not released etc.

How to delete a sap lock?

How to delete an SAP lock ?This article answers following queries :

What is a SAP lock ? Different types of SAP locks ? Difference between Write lock(E) and Enhanced write lock(X) ? How to monitor SAP locks ? How to delete SAP locks ?

***********************************************************************

SAP lock is set by the executing workprocess when a user/job wants a change access to data.

Whenever a lock to be set the respective workprocess checks in the locktable whether a respective lock conflicts the existing entries in the locktable. If so, a lock is refused. If there is no conflict, then a lock is set.

There are different types of locks :

Write locks (E) : This is also known as exclusive lock mode as the lock data can be edited by only one user. Any other requests from workprocesses to

Page 6: 1_SAP Basis Daily Monitoring Tcodes

set another write lock or read lock are rejected. A cumulate lock can be applied on the lock data by the same lock owner again.

Read locks (S) : This is also known as shared lock mode as several users can have read access to the locked data at the same time. Additional read lock requests are entertained even if they are from different users. However a write lock is rejected.

Enhanced write locks (X) : This is also known as exclusive non-cumulative lock mode. An enhanced write lock can be requested only once even if it is by the same transaction.

Difference between write locks(E) and Enhanced write lock(X) is write locks can be set and released by the same transaction several times but X type locks can also be set once even by the same transaction.

Optimistic locks (O) : These locks are set up when the users displays the data in change mode. Several optimistic locks can be setup on the same data. Optimistic locks are read locks(S) at first and converted to write lock (E) when the users wants to save the data. If an optimistic locks on a data is changed to write lock(E), all other optimistic locks on that data will be deleted.

Locks that are set by an application program are released by the program itself or they are released by the update program once the database has been changed.

Transaction code SM12 can be used to monitor SAP locks.

Page 7: 1_SAP Basis Daily Monitoring Tcodes

Here you have option of selecting locks based on following parameters tablename lock argument client username

In case, as part of monitoring, if you encounter some old sap locks and after thorough analysis, you would like to delete these, it can be done in the following ways : Select the locks and delete the lock from SM12 Identify the user who has set the respective lock and end the user session using SM04 transaction code

ST22  : (ABAP Dumps )

This transaction code will be useful to view all the abap dumps that have occured in the system on a given day. As part of daily monitoring, it is the responsibility of the basis administrator to analyse the dumps and take necessary actions to avoid issues.

Page 8: 1_SAP Basis Daily Monitoring Tcodes

Some of the examples of abap dumps are timeout issue, database space issue, spool overflow issue etc

SM21 : (System log)

This transaction is useful to view the log of the sap system for various operations. This log will be very useful to identify various issue in advance and to take necessary measures. System log is the place to check out for any timeout, network issues, database space issues, message server issues, spool overflow, locktable overflow etc issues.

Additional details : 

SAP System log

SM13 : (Update Requests overview)

This transaction is useful to figure the status of update system. Incase an update is inactive we can figure out the same from this transaction and necessary action can be taken and update can be activated again.

Update got deactivated. what is the reason for update deactivation? How to activate the update ?

Update got deactivated. What are the reasons for update deactivation. How to activate the update?This article answers the following queries ?

How to check the update status ? What is the reason for update deactivation ? How to activate or deactivate the update ? What is the parameter to be set to switch off automatic update deactivation ? How to troubleshoot, if update got deactivated ? What happens for the updates that are in progress, if update got deactivated ?

--------------------------------------------------------------------------------------------

Update status check :

Page 9: 1_SAP Basis Daily Monitoring Tcodes

Update status can be checked in transaction SM13.

Reasons for update deactivation :

Update will get deactivated in cases of serious database problems.

Some of the examples of update deactivation and solutions for those are given below :

 1) Update will get deactivated when oraarch is full

Solution : Trigger archivelog backup and ensure sufficient space is left in oraarch and then activate the update manually

 2) When some critical tablespaces are 100% full and database is not able to perform some operations

Page 10: 1_SAP Basis Daily Monitoring Tcodes

Solution : Monitor the database and findout the tablespaces which are 100% full.  Add necessary datafiles and ensure there is enough free space left out in them. Then activate the update manually

How to add datafiles in sap system based on oracle database ?

 How to activate or deactivate an update in sap ?

Use transaction SM14 and goto update tab. There update status can be viewed with a push button. If it is in deactivated status, click it to activate  and viceversa.

How to switch off automatic update deactivation ?

In RZ10, set the parameter rdisp/vb_stop_active to 1 and activate the profile to switch off automatic update deactivation incase of database problems.

How to change SAP parameter ?

How to troubleshoot, if update got deactivated ?

Please perform the following steps if udpate got deactivated :

Page 11: 1_SAP Basis Daily Monitoring Tcodes

 Check all the tablespaces and ensure figureout if any tablespace is 100% full. If so, add necessary space and activate the update as mentioned above

Check if oraarch is full. Trigger archivelog backup and ensure there is enough space and activate the update again

Check SM21 log and ST22 dumps

Check workprocess trace for any other issues

  What happens for the updates that are in progress, if update got deactivated ?

If update got deactivated all the updates that are in progress or waiting to get executed, won't be cancelled. They will be assigned either init or auto status. Once the database issue got fixed and update is activated again, all these updates which are in init or auto status will resume again

SM14 transaction can be called internally from SM13. These both transactions are useful for update administration.

In SM13, you can select status (canceled, to be updated, v1 executed, v2 executed, all ) and time interval during which you would like to view the status execute to check the overview of updates as per the status and time interval selected.

In case of canceled updates, analysis to be done whether to repeat update.

ST02 : (Tune summary )

This transaction will be used to monitor

 Buffer statistics like hitratio, swaps, db access details, size of buffer and free size of buffer etc

 Important statistics related to  Roll area, Page area, Extended memory and heap memory

Call statistics like select, insert, update and delete

Page 12: 1_SAP Basis Daily Monitoring Tcodes

As a basis administrator, it is our responsibility to ensure there is more hit ratio for the buffers and less swaps to ensure efficient performance of the sap system. In case you see there are more swaps and less hit ratios for most of the buffers, then tuning buffers to be carried out to ensure optimal performance.  DB12 (Backup logs) : This transaction is useful to check the details of   last successful backup overview of database backups ( Success / failure of backup with log details) Archiving directory status (Free space of oraarch ) Overview of redolog files ( Number of redologs that are not yet backed up) overview of redolog backups (Success / failure of backup with log details) DB13 (DBA Planning calender)   :

This transaction will be useful to schedule various database backups & clean up jobs like ( whole database backup offline/online, Full backup online/offline, incremental backup offline/online, redolog backup, update statistics, check db, cleanup logs, compress database, verify database, initialize tape and validate structure jobs).

In this transaction, you can also check the status of every job that was scheduled and can reschedule in case of failures.

DB14   (DBA operations log) :

This transaction will be useful to check the status of following :

Database backup Redolog backup BRSPACE log (extend tablespace issues etc) BRCONNECT operations (Update optimiser statistics , database check etc)  As an sap basis administrator it is our responsibility to check and ensure backups and other cleanup jobs are successful everyday. Incase of failures, should figure out root cause and take actions like rescheduling and ensure these jobs are successful.

SM37 ( Job status overview) :

This transaction will be useful to have an overview of jobs with different statuses.As part of daily monitoring, SAP basis administrator should use this transaction to findout canceled jobs and active jobs(for eg: long running - more than 24hrs etc).

Incase of canceled jobs, root cause for the failure to be figured out from the logs of the respective job and to be actioned by rescheduling etc.Incase of long running jobs, we need to figure out the reason for long running and action them accordingly.

Page 13: 1_SAP Basis Daily Monitoring Tcodes

In SM37, using extended job selection option, we can even select the jobs based on start condition, steps (like abap program, external command or external program), period etc

How to identify long running jobs in sap ?

How to find out long running jobs in SAP ?This article answers the following queries ?

How to find out long running jobs in SAP ? How to find out executing server, job class, periodicity or frequency of a background job ? How to find out release or start details of a background job ? How to find out program name or command being executed in a background job ? How to find out workprocess number that is executing the background job?

--------------------------------------------------------------------------------------------

How to find out long running jobs in SAP ?

Page 14: 1_SAP Basis Daily Monitoring Tcodes

Goto SM37 transaction and select the active job status between any 2 given date/time and list them. In the output, sort the jobs based on duration column in descending order and identify the jobs that are running for longer duration 

All other questions can be answered from the below :

Page 15: 1_SAP Basis Daily Monitoring Tcodes

Goto transaction SM37 and list the jobs based on status and time interval.

Select any job for which you want to figure out the details. Double click on the job,  which pops up "display job screen". In that screen, click on job details tab to view

Job name Job class (i.e A, B and C) Status of the job Exec. Target (server/instance on which job is being run currently) Job frequency (hourly, monthly , weekly etc) Workprocess that is executing the job Client on which job is running Release time of the job Schedule start of the job

  

Page 16: 1_SAP Basis Daily Monitoring Tcodes

How to troubleshoot a background job running for long duration in sap?  

How to troubleshoot a background job running for long duration in sap?This article answers how to troubleshoot a background job running for a long duration

--------------------------------------------------------------------------------------------

1) First of all identify the job that is long running and identify details like job class, workprocess that is executing the job

How to identify long running background jobs

2) Click on the job to view the display job screen. In the screen, click on job log to understand what is being performed by the job currently. This may give details like job is currently extracting some data packages or processing data packages etc

Page 17: 1_SAP Basis Daily Monitoring Tcodes

3) Identify the executing server and process id of the job from the step 1 and goto transaction SM50 of the respective executing server to view more details about the background job running.

Figure out the status of the job like On Hold or running from the process overview. If the job is On Hold, find out the reason for On Hold by examing the "Reason" column of SM50 transaction. Reason for On Hold could be due to CPIC/RFC/DEBUG/ENQ/PRIV/UPD etc.

Double click on the reason column for detailed information on the same and troubleshoot accordingly. If reason is RFC, check out which RFC it is referring to and cross check whether destination system is up or not and any other problems with that system. If it is ENQ, check out any lock issues like lock overflow etc If it is PRIV, check out for memory bottlenecks If it is UPD, check out whether any update issues If it is CPIC, check out for any network , gateway, message server and other communication problems

4) After performing step3, if you figure out job is not on Hold and it is in running state, then examine report column to identify what report/program is being executed by the job. Once you got the report/program details, figure whether it sap program or custom program and take actions accordingly.

5) Also examine Action and table columns in SM50 transaction of respective executing server to identify what is the action( roll in/roll out /Sequential read/Physical read/insert/update/delete etc)  being carried out by the job currently and what is the table on which action is being carried out.

If it is sequential read, figure out the cost of that sequential etc and consider for indexing etc. If it is physical read, check out whether there are too many swaps and consider resizing buffers accordingly. If you observed delay is due to high roll in/roll out, identify reasons for the same and tune buffer/memory parameters accordingly.

6) Once you get the table details on which action is being carried out, figure out        

    How many records are existing in the table ?     Is this taking long time due to volume of records ?

Page 18: 1_SAP Basis Daily Monitoring Tcodes

    Are there proper indexes on the table ?(If no proper index, consider index creation  by taking help of DBA )     Is the table having upto date statistics ? (If statistics are out of date,

              consider updating statistics of that table)

7) Consider debugging the process in SM50 ( Program/Session -> Program ->   Debugging ) to figureout the issue

8) Using ST05 or ST12, a trace can be taken for background job to figure out where exactly time is being consumed and to identify various cpu/memory bottlenecks or any buffer issues.

9) STAT/STAD transcation can be used to figure out what is the reason for high response time and actions can be taken accordingly

10) By taking help of ABAP er, even ABAP run time analysis can be done using SE30 transaction

By following the above steps, you can pin point the issue and take actions accordingly to minimize runtime of long running background jobs.

 ST04 (Database alert logs and performance) :

This transaction will be useful for (oracle) database administration. In this screen, goto Alerts and drill down further. Click on "Database Check" to find out any errors or warnings related to database like MISSING_STATISTICS, STATS_TOO_OLD, LAST_BACKUP_FAILED, LAST_ARCHIVE_FAILED etc. After going through the error or warning in details take necessary corrective actions based on the error like running update stats again, re-triggering backup etc

Under Alerts, you can view Alert monitor which will summarize status of the database under different heads like

Space Management Performance Backup/restore SAP Consistency Health

Page 19: 1_SAP Basis Daily Monitoring Tcodes

Drill down on each of these to find out potential problems. These are color coded for ease of administrator (Red for errors, yellow for Warnings and Green for OK status)

For Eg: If PSAPSR3 tablespace is >90%, you can see Space management in red color. Then it is the responsibility of Basis administrator to take necessary actions on the same.

SP01 ( Check Spool status ) :

This transaction is useful to find out the status of spool request and output request. In SP01 transcation, you can list the spool requests or output requests between a given interval.

In the list generated, you can check out the status of spool requests and findout any errors by drilling down further.

For eg: if so many spools are in waiting status, find out whether output device is available or not.

If many spool are in error status, figure out if there is any network issue and take necessary actions.

What are the different Spool statuses and their significance?

If  customers complain that they are not able print anything from SAP, check out whether there is any spool overflow.

What are the different Spool statuses and their significance?This article answers the following queries :

What does spool request contain ? Where is the spool request stored ? What are different Spool statuses and their significance? Which workprocesses will create spool requests? What is the difference between spool request and output request ? Which workprocess will create output request  or print request?

-------------------------------------------------------------------------------------------

What does spool request contain ?

Spool request contains detailed information regarding printer model, formatting to be done on the data to be output.

Page 20: 1_SAP Basis Daily Monitoring Tcodes

Where is the spool request stored ?

The spool request that is generated is stored in the Temse( temporary sequential file)

What are different Spool statuses and their significance?

Spool requests will have different statuses like

Completed (The output request printed successfully) Waiting (Spool request is in waiting status and spool system has not yet processed the output request and not yet sent to the host system) Inprocess (The spool workprocess is in the process of formatting output request for printing) Printing (The host spool is in the process of printing the output request Problem (This indicates there are some minor errors. It means output request printed but contains some errors like incomplete character set etc) Error (This status indicates some serious issues such as network error. It means the requests have not printed and they remain in the spool system until they are deleted or until they reach their expiration date. After expiry date, they are deleted by the reorganisation jobs.  Archive (This status is set for spool requests that are sent to an archiving device. This status means that the spool request was already processed by the spool system and it is now waiting to be archived) Time (This status means that the user who has created the spool has mentioned some specific time for output) -  ( This minus status means that the spool request is not yet sent to the host system and no output request exists) + ( This plus status means that the spool request is being generated and it is stored in the spool system )

Which workprocesses will create spool requests? :

Spool requests will be created by dialog or background workprocesses.Please note that spool work processes donot create spool requests

What is the difference between spool request and output request ?

Page 21: 1_SAP Basis Daily Monitoring Tcodes

Spool request contains detailed information regarding printer model, formatting to be done on the data to be output. Output request contains all the data in the format that the printer understands.

A spool workprocess formats the data specified in the spool request and generates the output request. Output request is also termed as print request.

Which workprocess will create output request ?

Output request will be created by spool workprocesses.

What is spool overflow ? How to troubleshoot spool overflow issue ?

what is spool overflow ? How to troubleshoot spool overflow issue ?This article answers the following queries :

What is spool overflow ? How to troubleshoot spool overflow ? How to delete old spool requests ? How to avoid spool overflow issue ? How to check spool numbers? How to set the spool number in SAP ? How to define storage location (Temse) of spool requests ?

--------------------------------------------------------------------------------------------

What is spool overflow ? :

Spool request that got generated are stored in a temporary sequential file called Temse. Please note that these are stored in Temse because these are not stored permanently. The size of the Temse is limited by the parameter definition.The default size of Temse is 32,000 and it can be increased till 2 billion. However, defining very high value can effect the database performance. Due to limited storage capacity of Temse, when this file got full, this throws an SAP spool overflow error.

Page 22: 1_SAP Basis Daily Monitoring Tcodes

If this happens, customers could not print from SAP. If you check in SM21 and ST22 transactions, you may encounter some error log or dumps like

ERROR IN SPOOL call : SPOOL OVERFLOW SPOOL_INTERNAL_ERROR System internal error in the spool system

How to troubleshoot spool overflow ?

To resolve this spool issue, some of the old spools can be deleted from the sap system. Goto transaction SPAD. From the initial screen, navigate to Administration -> Clean_up_spool. Once you click this, Spool Administration : Delete old spool requests screen will be displayed.In that screen, you will be prompted to choose requests for deletion like

Old spool requests older than the maximum set age Requests already printed All spool requests

and enter value for minimum age (in days) text box.

Page 23: 1_SAP Basis Daily Monitoring Tcodes

Select the check boxes as per the requirement (eg:  delete all requests already printed and minimum age in days equal to 30 days) and execute to delete old spool requests, which will clear Temse and will resolve spool over flow issue.

Apart from this there are others ways of resolving spool overflow issue. They are

1) Run the report RSPO0041 from SE38 transaction to delete old spool requests

Page 25: 1_SAP Basis Daily Monitoring Tcodes

How to avoid spool overflow issue ?

These reports RSPO0041 and RSPO0043 should be scheduled as background jobs with proper variants on a periodic basis which avoids spool overflow issue.

You can try to increase the spool numbers from default 32000 to a bit higher value but please note donot set this too high as it may impact database performance

Proactive monitoring check can be made in RZ20 transaction to see how much is the fill level of spool numbers.

          How to check spool numbers ?

          To check spool numbers : Goto RZ20 transaction, navigate to SAP CCMS Monitor Templates -> Spool System.

Page 26: 1_SAP Basis Daily Monitoring Tcodes

Here you can check the status of spool servers and the used numbers percentage of spool numbers. If you find that used numbers is greater than

Page 27: 1_SAP Basis Daily Monitoring Tcodes

80%, you can manually run above mentioned reports or delete old spool requests from SPAD tcode as mentioned earlier.

How to set the spool number   in SAP ?

Using Transaction SNRO (Number range object maintenance) and object SPO_NUM, you can set the spool number in an SAP system.

Page 28: 1_SAP Basis Daily Monitoring Tcodes

Once you provide object as SPO_NUM, click on change icon. It displays another screen. In that screen, click on Number Ranges push button. It displays another screen "Number range for spooler numbers". Click on change icon here and set the value of spooler(from number and to number). Please note that a change request may be generated here based on the client settings(if automatic recording of changes is set in SCC4 transaction of the client)

How to define storage location (Temse) of spool requests ?

Every Temse object contains a header in TST01 table and the actual object. This can be either stored in table TST03 or in file system. You can set a parameterrspo/store_location in RZ10 to define whether to store Temse objects  TST03 table or in filesystem.

If value G is set to this parameter, it will be stored in filesystem and if it is db it is stored in TST03 table.

How to change a SAP parameter ?

How to change SAP parameters ?This article answers following query :

How to change or set a SAP parameter

Page 29: 1_SAP Basis Daily Monitoring Tcodes

SAP parameter can be set using RZ10 transaction. Go to RZ10, select the respective instance profile of the application server on which you would like to change the parameter.

From the dropdown of profile, select the instance profile (of the application server) on which you would like to change the parameter.

After selecting the profile, select extended maintenance button and press change push button.

It displays a screen with all the parameters as shown below :

Page 30: 1_SAP Basis Daily Monitoring Tcodes

You can  either search the parameter or create the parameter and then set the value to the desired and save the same as below.

Set the parameter value in the text box provided and click copy button to copy the same and then press back button and press copy again in the next screen. After that press the back arrow to come to the following screen

Page 32: 1_SAP Basis Daily Monitoring Tcodes

Press yes, to activate the profile.

The parameter will take effect after restart of the application server

SXI_Cache   :  This Tcode is specific to XI or PI system. This Tcode is used to findout whether cache refresh is happening or not. Incase if cache refresh is happening successfully, it will indicate the same in green color. Otherwise it will be in red indicating a problem with cache refresh.

If there is a problem with cache refresh then basis administrator has to troubleshoot the same.

Page 33: 1_SAP Basis Daily Monitoring Tcodes

SLDCHECK : This Tcode will be useful to figure out whether connection to the SLD system from the system on which you are testing is fine or not. In case the connection is fine, all checks will appear in green. Incase of any issues, it will appear in red or yellow and then basis administator has to troubleshoot it and make sure SLDCHECK is working fine.

Ensuring SLDCHECK is working fine is important to keep all systems in the landscape in sync.

SXI_MONITOR : This TCode is specific to XI or PI system. This transaction will be useful to figure out any errors or warnings in the processing of XI or PI messages. In case of any issues, this needs to be informed to functional team and should be troubleshooted accordingly with the functional team inputs.

DBO1 : This transaction code is useful to findout the database locks that are present in the SAP system.

As part of daily monitoring, SAP Basis administrator has to figure out if there are any long pending locks more than 1 day etc and analyse reasons for the same. Sometimes if programs/jobs got terminated abruptly without removing the database locks set, this will lead to performance issues as other programs which needs that lock cannot set etc and they have to wait indefinitely as these locks won't get released automatically. In case of any long pending locks, Basis administrators should contact DBA team if any an dfigure out the reason for these locks and action accordingly

Jack Stack Checks :  Please refer below links to understand Daily Java monitoring of SAP Landscape:

SAP Java monitoring check list 1

SAP Java monitoring Check listThis article answers the following queries :

    How to perform daily monitoring of Java stack in SAP ?

  What are the daily checks for Java applications of SAP ?

  How to access management console in SAP ?

  How to perform session monitoring in JAVA stack  of SAP ?

  How to view various java reports in JAVA stack of SAP?

  What are the various java reports available in Java stack of SAP  and what is their significance?

  How to view log and traces in java stack of SAP?

Page 34: 1_SAP Basis Daily Monitoring Tcodes

  Where to view default trace in java stack of SAP?

  What is the use of  management console in SAP ?

-----------------------------------------------------------------------------------------------

JAVA MonitoringContents :

1.       Checking the java stack/portal accessibility

2.       Actioning, in case portal not accessible

3.       User load analysis

4.       Java Reports – Navigation and usability

5.       Memory consumption and Threads report

6.       Session Monitoring

7.       Logs and Traces (Default trace, Server0 log etc)

8.       Accessing Management Console

9.       Checking System availability using Management Console(SDM, Msg server, Enqueue server, Java nodes etc)

10.   Check various logs(work directory logs, jcontrol, default trace, application log etc)

Java Monitoring :

Place the link of the respective java application in the browser and check whether the java application is opening:

For example:

http://baakaprd.company.com:50000/irj/portal

If java is up and running, a screen similar to below will open.

Page 35: 1_SAP Basis Daily Monitoring Tcodes

If the page did not open,

i)                     Check  whether there are network issuesii)                    Check tablespaces occupancy levels at Oslevel and make sure sufficient space is

there and  if any tablespace is  100% full, action the sameiii)                  Check the default trace for any critical errorsiv)                  Check application log to determine any memory related issuesv)                   Check server node status at oslevel or through management console and action

and bring up the java again.

To estimate the user load and to check the number of users logged onto the java portal :

Navigate to User Administration ->  Activity Reports

i)                    Check “Number of users in the last 3 hours” report

Page 36: 1_SAP Basis Daily Monitoring Tcodes

   ii)                    To figure out most active users,

                                    Check the 10Most active users report

Page 38: 1_SAP Basis Daily Monitoring Tcodes

Java Reports :

Java Memory Consumption Report and Threads Reports :

These reports includes a chart of the memory usage of a cluster node and a chart related to the system and application thread pool.

To check this report login to nwa of the respective java stack :

Then  navigate to Monitoring -> Java System Reports :

Here following reports can be taken by selecting the respective report from the drop down provided:

         Capacity Planning : This report includes a chart representing the requests sent to J2EE Engine, a chart for the number of http and security sessions, and a chart of the communication between J2EE nodes

         Resource Consumption : This report includes a chart of the memory usage of a cluster node, and a chart related to the system and application thread pool

         Error Statistics:  This report includes a chart representing a collection of counters useful for investigating problems. There are also charts that give an overview of timeouts and the size of log files

Page 39: 1_SAP Basis Daily Monitoring Tcodes

         Application Activities : This report includes a chart that represents the history of the activities of deployed applications

         Slowest requests in detail         Slowest requests         Slowest components         User activities         Current activities         Monitor Browser

However from monitoring perspective, resource consumption report is most important to analyse the memory consumption.

Select resource consumption from the dropdown to view the memory statistics as below:

Page 40: 1_SAP Basis Daily Monitoring Tcodes

Click on Go to Detailed Chart link of the respective report to view detailed chart as below

Page 41: 1_SAP Basis Daily Monitoring Tcodes

Click Hint on charts link to analyse the report better.

Page 42: 1_SAP Basis Daily Monitoring Tcodes

Select the respective Instance, Cluster node and Time period from the provided dropdown boxes to view the reports belonging to the same

Page 44: 1_SAP Basis Daily Monitoring Tcodes

There are 2 types of views: Chart view and Table view. You can change the view by selecting the respective radio button.

Please find below table view for Memory Consumption report

Page 45: 1_SAP Basis Daily Monitoring Tcodes

Session Monitoring:

To monitor sessions, navigate to Monitoring -> Session Monitoring

Page 47: 1_SAP Basis Daily Monitoring Tcodes

SAP Java monitoring check list 2

SAP Java Monitoring Check list 2This article is in continuation with the below artilce :

SAP Java monitoring check list

--------------------------------------------------------------------To check “Logs and Traces”, navigate to System Management -> Monitoring -> Logs and Traces

From the drop down box, different logs can be checked

Page 48: 1_SAP Basis Daily Monitoring Tcodes

  Process list – List of processes that are currently running can  be viewed here and any long running process can be identified and actioned accordingly.

Using Management Console for monitoring Java System :

To open management console for SAP systems based on Unix operating system, add 13 for the port of the portal as mentioned below

Page 49: 1_SAP Basis Daily Monitoring Tcodes

http://faqsa6.comapn.com:50013

A screen similar to below screen will appear :

You can drill down further on SID of the system to view database,Central and SCS instance details as below :

Page 51: 1_SAP Basis Daily Monitoring Tcodes

Please note that Management Console can be accessed even when java is down for a sap system.

You can check database status as below :

You can check the javanode status as below:

Status should be running here if java is up

Page 52: 1_SAP Basis Daily Monitoring Tcodes

Process list – List of processes that are currently running can  be viewed here and any long running process can be identified and actioned accordingly.

SDM, Dispatcher, Server0 and server1 node status can be checked here:

Page 53: 1_SAP Basis Daily Monitoring Tcodes

Various work directory logs, availability log, application log and default trace can be checked here :

Page 57: 1_SAP Basis Daily Monitoring Tcodes

Dev_server0 log :

To check the status of message and enqueue servers, check the process list under scs instance as mentioned below :

To check various logs related to message server, enqueue server, jcmon check the logs under SCS instance as mentioned below :

Page 58: 1_SAP Basis Daily Monitoring Tcodes

To monitor live Cache system, please refer below link :

Live Cache Monitoring in SAP

LiveCache MonitoringThis article answers following queries:

  What are the monitoring checks for live Cache in SCM or APO System?

  How to check “Activity Overview” in Live cache system?

  How to check OMS locks in live cache system?

  How to check SQL locks in live cache system?

  How to check exclusive waits in live cache SAP system?

  How to check database manager messages in live cache system?

  How to check the parameters in live cache system?

  How to check parameter history in live cache system?

  What are the different memory areas in live cache system?

Page 59: 1_SAP Basis Daily Monitoring Tcodes

  How to check Caches, Heap usage, data area and Log area in Live cache of APO or SCM system?

-----------------------------------------------------------------------------------------

This article explains you how to monitor/view various paramaters, parmeter history, OMS locks, SQL locks, cache usage, exclusive waits, database messages, various configuration related to memory. This knowledge will be very much useful to troubleshoot and fix the problem in case you encounter any performance issues in Livecache system.

Please login into livecache system using LC10 transaction and providing LCA in the name of database connection as below. Click on Pushbutton “Livecache Monitoring” to proceed further.

System redirects to the following screen. As shown, in the screen, please click on “ Activity Overview” item to view details/statistics related to

  SQL Statements

  I/O Activity

  Lock Activity

  Logging Activity

Page 60: 1_SAP Basis Daily Monitoring Tcodes

  Scan and Sort Activity

To view OMS locks (or logical object locks) , navigate to LCA-> Problem Analysis -> OMS locks -> Overview as shown in the below screen.

Page 61: 1_SAP Basis Daily Monitoring Tcodes

To view exclusive waits, navigate to LCA -> Problem Analysis -> SQL Locks -> Waits as shown in the below screen

Page 62: 1_SAP Basis Daily Monitoring Tcodes

To view existing SQL Locks and SQL lock requests, navigate to LCA -> Problem Analysis -> SQL Locks -> Overview as shown in the below screen

Page 63: 1_SAP Basis Daily Monitoring Tcodes

To check database manager messages, navigate to LCA -> Problem Analysis -> Messages -> Database Manager as shown in the below screen.

Page 64: 1_SAP Basis Daily Monitoring Tcodes

To view the defined parameters and their values in the live cache system, navigate to LCA -> Administration -> Configuration -> Parameters as shown in the below screen

Page 65: 1_SAP Basis Daily Monitoring Tcodes

To view the history of the parameters that are changed date wise, navigate to to LCA -> Administration -> Configuration ->Parameter History as shown in the below screen

Page 66: 1_SAP Basis Daily Monitoring Tcodes

To view the Cache related information, navigate to LCA -> Current Status -> Memory Areas -> Caches as shown in the below screen.

Page 67: 1_SAP Basis Daily Monitoring Tcodes

To view the OMS Heap related information, navigate to LCA -> Current Status -> Memory Areas -> Heap Usage as shown in the below screen.

Page 68: 1_SAP Basis Daily Monitoring Tcodes

To view the “ Data area” related information, navigate to LCA -> Current Status -> Memory Areas -> Data Area as shown in the below screen.

Page 69: 1_SAP Basis Daily Monitoring Tcodes

To view the “ Log Area ” related information, navigate to LCA -> Current Status -> Memory Areas -> Log Area as shown in the below screen.

Page 70: 1_SAP Basis Daily Monitoring Tcodes

Related Link :

How to start or stop livecache in SAP SCM or APO system?

Please find below table which summarizes daily monitoring tasks that are to be performed by the SAP Basis Administrator :

Sno Task

ABAP Stack Checks1Check process overview(SM50)

Page 71: 1_SAP Basis Daily Monitoring Tcodes

2Check overall system process overview(SM66)3Check application servers status(SM51)4Check for any pending locks (SM12)5Check for Dumps in the system(ST22)6Check System log for any errors(SM21)

7Check for any hanged updates or update status(SM13)

8Check for excessive swapping (ST02)

9Check for critical job status like backup,updatestats,checkdb etc(DB13)

10Check for longrunning/failed jobs status(SM37)11Check database alertlogs and performance(ST04)12Check spool job status (SP01)13Check cache status (sxi_cache) for PI System14Check SLD functionality(SLDCHECK)15Check SXI_MONITOR for PI system16Check for Database locks(DB01)

Java Stack Checks1Check java portal accessibility using link2Check server0 log for java system for critical errors3Check accessibility of management console4Check server node status 5Check default trace for critical java errors

6Check java reports for memoryconsumption/swappingOs level checks

1Check filesystems usage (shouldb be <80%)2Check for swap space using topas etc3Check for work directory log files at oslevel for errors