Escolar Documentos
Profissional Documentos
Cultura Documentos
0 Monitoring
2005 SAP AG 1
Best Practice for Solution Management: CRM 4.0 Monitoring
The monitoring architecture, a solution within mySAP Technology, centrally monitors any IT
environment - from individual systems through networked SAP solutions to complex IT landscapes
incorporating several hundred systems. It is included in every SAP solution and can be used
immediately after installation. You can easily extend the architecture to include SAP and non-SAP
components.
Alerts form a central element of monitoring. They quickly and reliably report errors such as values
exceeding or falling below a particular threshold value or that an IT component has been inactive
for a specified period of time. These alerts are displayed in the Alert Monitor which reduces the
workload for system administrators since they only need to respond to error conditions based on pre-
defined thresholds rather than sifting through masses of cryptic system data.
The Alert Monitor is therefore the central tool with which you can efficiently administer and monitor
distributed SAP solutions or client/server systems.
2005 SAP AG 2
Best Practice for Solution Management: CRM 4.0 Monitoring
Alternative Practices
Individual SAP installation and administration handbooks, SAP Notes, OEM documents and other such
documents may also be used instead of this Best Practice.
We have tried to draw together the monitoring-relevant information from all these sources into this Best
Practice. Additionally, experiential input from SAP Active Global Support consultants and thousands of
remote performance service sessions enhance the added-value of this Best Practice over the standard
SAP documentation.
System Requirements
This Best Practice is focused on the components comprising a mySAP CRM release 4.0 solution scenario.
System requirements are dictated by the scenario used in a customers solution landscape.
2005 SAP AG 3
Best Practice for Solution Management: CRM 4.0 Monitoring
Preliminary Tasks
Before performing this Best Practice, ensure that you perform the following preliminary tasks or checks in
the system:
Complete all installation and post-installation actions and procedures including customizing
Ensure that the initial download has been successfully executed
Apply all SAP recommendations from SAP Service Sessions and any SAP recommendations resulting
from customer problem messages
Implement all current SAP Support Packages upon availability
Procedures
2005 SAP AG 4
Best Practice for Solution Management: CRM 4.0 Monitoring
For more information on the individual processes, use F1-help for the node in the monitoring tree.
Transaction RZ21 can be used for making changes to the SAP standard settings used in the CCMS.
The following pages describe the methods and procedures for monitoring the CRM specific qRFC
communications in the CRM and R/3 Systems both using CCMS Alert Monitoring and using manual
methods.
2005 SAP AG 5
Best Practice for Solution Management: CRM 4.0 Monitoring
Note: In an SAP implementation using qRFC with outbound queue and/or qRFC with inbound queue the
following will help to clarify the terminology used:
Sending system = client system = calling system = source system
Receiving system = server system = called system = target system
These terms are often used in different contexts and are important to differentiate from one another.
2005 SAP AG 6
Best Practice for Solution Management: CRM 4.0 Monitoring
Outbound Queue Scheduler is monitored in the CRM System using CCMS for the following
(see also transaction SMQS):
QOUT Scheduler Errors (for all SAP clients)
YELLOW alert is issued for destinations having status CPICERR, STOP, WAITSTOP,
WAITING, ARETRY, WAITUPDA
RED alert is issued for destinations having status SYSFAIL or ANORETRY
RED alert is issued for destinations that have had status RUNNING or EXECUTED for
more than 30 minutes
Auto reaction methods can be defined
2005 SAP AG 7
Best Practice for Solution Management: CRM 4.0 Monitoring
The AFRCSTATE table is monitored in the R/3 System for the following:
RED alert is issued upon status CPICERR, SYSFAIL or SYSLOAD
Setup
The Middleware Alert monitoring is delivered preconfigured and installed as part of the CRM and R/3
installation procedures.
Auto reaction methods can be setup as described in SAP note 420661, section 3.
Auto-reaction methods can trigger emails, pager messages or faxes. Furthermore you can change the
alert thresholds for your own needs by using the properties-button.
Manual Monitoring
Overview Monitoring Tools
The below table lists the main monitoring transactions, their descriptions and recommended frequency of
use when manually monitoring the CRM and R/3 Systems:
2005 SAP AG 8
Best Practice for Solution Management: CRM 4.0 Monitoring
SMQ2 qRFC Inbound Queue Monitor Frequency depends on the business process
Upon error
If inbound queues are not being processed
Transaction SMWP
The CRM Middleware Monitoring Cockpit can be called using transaction SMWP on the CRM server.
2005 SAP AG 9
Best Practice for Solution Management: CRM 4.0 Monitoring
o Shows publication objects per industry template that were successfully generated, not
generated or generated with errors
Missing indexes: Indexes with respect to the flow services and the replication model are proposed
and checked here.
Section Runtime Information contains
Message Processing Active:
Checks if BDoc processing is possible.
RED alert: a generation or an upgrade was not completed successfully and neither RFC-processing
nor online processing is possible without generating a dump.
Data exchange using qRFC Queues:
Shows the status of qRFC Queues and the status of the inbound and outbound schedulers.
The data is created by CCMS alerts and displayed here.
Double-clicking will jump to qRFC-monitoring and display details. Additionally, you will find the qRFC-
Outbound Queues of the SAP R/3-backend with their status.
Adapter status information:
o Initial Load Status:
Shows client specific status of the initial load provided by transaction R3AM1.
Possible statuses are waiting, running and aborted.
o Request Status:
Shows client specific status of Request load provided by transaction R3AR4.
Possible statuses are waiting, running and aborted.
o Inactive Objects:
Here you will find a list of processed, aborted, waiting inactive and running inactive
objects by double click on the numbers of objects behind the alerts.
o Parameters in OLTP backend:
Here you find the following settings for initial load in the backend
Whether the RFC-Destination from backend to the CRM System exists
CRM Default Entry for object load,
Parameter in table CRMRFCPAR (see note 5010192) that enables the backend
system to send all relevant updates into CRM
XML active for object load from backend
GREEN: data transfer between backend and CRM is done in XML
YELLOW: not XML
For details check notes 442277 and 487229.
Use Inbound Queues for object load from R/3 backend
GREEN: all objects use Inbound Queues
YELLOW: all objects do not use Inbound Queues
Entries in table CRMPAROLTP with consumer = CRM, see Note 350175,
CRM Middleware RR-Queues
o Status of the RR-Queue Demon:
GREEN: RR Queue Demon is running
RED: RR Queue Demon is not running
You can jump to transaction SMOHQUEUE by double click from here.
o Status of the RR-Queues (per client):
Shows the CCMS results of the AC-Extract, the Extract-Bulk, the Extract, the Realign and
the Subcheck Queue as
GREEN: RUNNING
2005 SAP AG 10
Best Practice for Solution Management: CRM 4.0 Monitoring
YELLOW: RELEASED
RED: ON HOLD
CRM Middleware BDoc messages in the Flow:
o Shows the CCMS-results for BDoc messages with error (statuses E1, E2, E4-E7) or
waiting (status O01) for response from receiver (for instance R/3-backend).
You can jump into transaction SMW02 from here by double click.
Section System Settings contains the number of defined receiver sites per site type.
Section Monitoring Tools / Statistics is displayed if the CRM relevant Monitoring Tools are switched on:
BDoc Type/ BDoc Service Workload Statistic
GREEN: active
YELLOW: not active
Monitors performance data of the BDoc flow and is only relevant if you want to check this data for
your productive system. The data are displayed using transaction SMWMFLOW by selecting
Message Service Kernel Application Statistic.
See section SMWMFLOW for how to start this monitor.
BDoc Message Flow Processing Statistics
GREEN: active
YELLOW: not active
Monitors performance data of the BDoc flow and is only relevant if you want to check this data for
your productive system. The data are displayed using transaction SMWMFLOW by selecting
Message/site/Queue Statistics.
See section SMWMFLOW for how to start this monitor.
Mobile Client Communication Statistics
GREEN: active (Background job is running)
YELLOW: not active or no data is available.
Monitors performance data of the Conntrans process and is only relevant for Mobile Scenarios if
you want to check this data for your productive system. The data are displayed using transaction
SMWMCOMM by selecting tab page Statistics.
See section SMWMFLOW for how to start this monitor.
Middleware Alert Monitor shows the status of the CCMS Monitor for Middleware.
GREEN: active, without alerts
YELLOW: not active
RED: active with alerts
Trace Status shows the status of the trace using transaction SMWTAD.
GREEN: active at SAP default trace level
YELLOW: the trace level is higher
Background Jobs
Monitors whether the background jobs necessary for the CRM Middleware are running.
o Middleware Reorganization (SMO6_REORG):
This job deletes Middleware Trace information, final processed BDocs and other
temporary traces. For scheduling this job see SAP note 206439.
GREEN: job is running
YELLOW: job is not running
2005 SAP AG 11
Best Practice for Solution Management: CRM 4.0 Monitoring
(De)activation of SMWP
The background job for generation and runtime steps using transaction SMWP can be activated by
clicking Schedule Background Job in the menu.
Verify that it is running by using menu path Utilities Background Collector.
Relevant SAPNET-Notes
704543: Jump in the queues from SMW01 is incorrect
623479: Korrekturen CRM-MW-GEN zu CRM 4.0 SPxx (20.5.2005, not yet translated into English)
2005 SAP AG 12
Best Practice for Solution Management: CRM 4.0 Monitoring
Transaction SMW01
Transaction SMW01 is used on the CRM server to monitor the Processing Status of BDoc Messages.
(De)activation of SMW01
Transaction SMW01 cannot be switched off.
DISPLAY functionality:
Select BDoc Message Display Classic part
Select BDoc Message Display Extended part
Checking the data content:
Classic Part displays the complete data content for synchronization of BDocs and some fundamental
fields for messaging BDocs.
Extended Part displays the data of a messaging BDoc.
Both classic and extended parts can be shown as XML strings if necessary.
2005 SAP AG 13
Best Practice for Solution Management: CRM 4.0 Monitoring
Process- functionality:
Select BDoc Message Reprocess Delete
BE VERY CAREFUL CARRYING THIS OUT!
Deleting BDocs causes inconsistencies in business data which must be corrected afterwards.
Deleting a BDoc message means that the receiving system(s) will not be updated, thus creating
inconsistencies. Only delete BDoc messages when you are sure they are obsolete or can be
recreated by sending the application object again.
SAPNET-Notes
526853: BDoc errors in CRM
691628: Deactivating links between BDoc messages
2005 SAP AG 14
Best Practice for Solution Management: CRM 4.0 Monitoring
Transaction SMW02
Transaction SMW02 is used on the CRM server to monitor the BDoc Message Summary.
(De)activation of SMW02
Transaction SMW02 cannot be switched off.
Transaction SMW02A
Transaction SMW02A is used on the CRM server to monitor the BDoc Message Error Analysis.
(De)activation of SMW02A
Transaction SMW02A cannot be switched off.
Transaction SMW03
The number of unprocessed BDoc messages per Message Type is shown using transaction SMW03 in
CRM server.
2005 SAP AG 15
Best Practice for Solution Management: CRM 4.0 Monitoring
(De)activation of SMW03
Transaction SMW03 cannot be switched off.
Transaction SMWT
Transaction SMWT displays the Middleware Trace on the CRM server.
(De)activation of SMWT
Transaction SMWT cannot be switched off.
Relevant SAPNET-Notes
429423: CRM Release: General analysis in the initial load
Transaction SMW00
Transaction SMW00 displays the error handling customizing in the CRM server.
2005 SAP AG 16
Best Practice for Solution Management: CRM 4.0 Monitoring
(De)activation of SMW00
Transaction SMW00 cannot be switched off. If no customizing has been done, no error handling can take
place.
Relevant SAPNET-Notes
654186: Flow error handler does not display any error
(De)activation of SMWMFLOW
Transaction SMWMFLOW can be activated by calling transaction SMWMFLOW Goto Activate
Statistics.
To activate the Kernel Application Statistics press the appropriate button, select change mode and flag
the Middleware Message Hub statistics in the table.
To activate the Middleware Message Flow Statistics select the appropriate button, then select Switch
ON for switching on. Afterwards you will see the green highlighted On in the screen.
2005 SAP AG 17
Best Practice for Solution Management: CRM 4.0 Monitoring
These statistics can also be retrieved in a time range of previous minutes (Last minutes Workload).
Here specify how many minutes back to start the selection for the analysis.
Message Flow Statistics
These statistics are divided into Inbound and Outbound with the server and time range selection below
each in the selection tree. Any time range of interest can be selected. Outputs include BDoc-Type-, Site
Profile-, Queue Profile- and Time profile tabstrips.
The BDoc tabstrip shows which message type is processed and how often. There you find the name of
the synchronization BDoc, if there is any BDoc belonging to the Mobile Scenario, and the name of the
messaging BDoc. Times are shown for how long the BDoc spent in queues (total and average), in Inbound
Flow, in Mapping and in Messaging Flow in Total.
Similar statistics are seen per Site in the Site tabstrip and in the Time profile. The time profile shows it per
hour (for the days statistics) or per day (for the weekly statistics). For the days statistics the Single
Records Statistics including the BDoc ID and the exact processing time are displayed.
The Queue-Profile shows the average, maximum and total queue time and the number of BDocs
processed per queue.
Transaction SMO8FD
Flow definitions are shown using transaction SMO8FD on the CRM server.
(De)activation of SMO8FD
Transaction SMO8FD cannot be switched off.
Transaction SMOECK
The CRM server transaction SMOECK checks all replication relevant objects and their assignments.
Possible errors, such as incorrect assignments, objects that have not been deleted completely, and data
inconsistencies, are determined and displayed.
For the displayed objects, you can normally use the View Object pushbutton to call up the application that
can be used to troubleshoot the error displayed. This may be the Administration Console or the BDoc
Modeler.
2005 SAP AG 18
Best Practice for Solution Management: CRM 4.0 Monitoring
(De)activation of SMOECK
Transaction SMOECK cannot be switched off.
Transaction SMOHQUEUE
The functioning of Replication/Realignment can be monitored using transaction SMOHQUEUE on the
CRM server.
(De)activation of SMOHQUEUE
Transaction SMOHQUEUE cannot be switched off.
Relevant SAPNET-Notes
453882: Parallel processing of the R&R queues
437187: CRM Middleware Alert Monitoring
2005 SAP AG 19
Best Practice for Solution Management: CRM 4.0 Monitoring
Transaction R3AM1
The transaction R3AM1 monitors load objects in the CRM server.
(De)activation of R3AM1
Transaction R3AM1 cannot be switched off.
Transaction R3AR3
The transaction R3AR3 monitors requested objects in the CRM server.
(De)activation of R3AR3
Transaction R3AR3 cannot be switched off.
2005 SAP AG 20
Best Practice for Solution Management: CRM 4.0 Monitoring
Transaction RSA7
The transaction RSA7 shows status of the BW interface in the CRM server.
(De)activation of RSA7
Transaction RSA7 cannot be switched off.
Relevant SAPNET-Notes
380078: FAQ: BW delta queue (RSA7): Questions and answers
396647: FAQ: V3 update: Questions and answers
Transaction BWA7
Transaction BWA7 shows the status of the BW interface in CRM server.
(De)activation of BWA7
Transaction BWA7 cannot be switched off.
Relevant SAPNET-Notes
766968: Extraction: FAQ on BWA framework to extract data from CRM
692195: FAQ: Sales Analytics and CRM-BW data Extraction
2005 SAP AG 21
Best Practice for Solution Management: CRM 4.0 Monitoring
If an error occurs in an LUW on the remote receiver system, the function modules of the queue entries are
rolled back on the receiving system. The relevant LUW and all of the other LUWs in the queue remain in
the queue and in the tRFC tables on the sender system. After correcting the error, transaction SMQ1 can
be used to re-transmit the LUW of the queue.
Key points:
Queues destined for the OLTP system are normally relatively short and quickly processed
Outbound Queues for BW and Mobile Clients are used with status NOSEND
The receiver fetches the data and the queue entries can only be deleted after confirmation by
the receiver.
If a queue that is in use between a mobile client and CRM is deleted it will cause inconsistency
between CRM and the mobile client
In severe cases when a mobile client cannot be manually rebuilt, it can be brought back into a
consistent state by rebuilding the client data from the CDB (AC_EXTRACT)
When the queue entries for a mobile client reach 10,000, the queue should be closely monitored
(e.g. issue warning).
When the entries reach 100,000 severe problems may occur and performance will be
affected. Administrative actions must be taken.
2005 SAP AG 22
Best Practice for Solution Management: CRM 4.0 Monitoring
Queue-Name Description
CDB* Start Queues for Loads CRM CDB
CRM_SITE_* Load Queues for Mob. Clients
CSA* Send queues of CRM Server application
EXT* Start Queues for Loads CRM External programs
Status Descriptions
READY First LUW of the queue is ready for sending
RUNNING First LUW of the queue is currently being processed
EXECUTED First LUW of the queue has already been processed, and is waiting for
confirmation from the receiver system
NOSEND No active sending, receiver has to fetch the data (e.g. mobile clients, BW
System)
Deletion of the first LUW only after confirmation of the receiver
STOP Application locked the first entry of the queue temporarily
WAITSTOP Locked because of dependency on another queue, while the other queue is
locked
WAITING Locked because of dependency on LUW in another queue which is not the
first queue entry in the other queue
WAITUPDA First LUW contains update function for which the queue is currently waiting
SYSLOAD No dialog work process free; automatically reprocessed by a background job
CPICERR Network or communication error; automatically reprocessed by a
background job
Can cause a blocked queue.
RETRY Can cause a blocked queue.
2005 SAP AG 23
Best Practice for Solution Management: CRM 4.0 Monitoring
Call transaction SMQ1 and execute using the default, current, SAP client to get the current overview of
queues in the outbound queue.
Change the view by using function code F8 to get a list of queues with other-than-normal processing
status.
2005 SAP AG 24
Best Practice for Solution Management: CRM 4.0 Monitoring
Relevant SAPNET-Notes
309734 (CRM 2.0) or 429423 (CRM 3.0): General error analysis if the initial load finishes unsuccessfully.
390592: qRFC monitoring
420213: Composite SAP note: Central monitoring of mySAP.com components
420661: CCMS monitor for middleware monitoring for CRM/EBP setting-up alerts, etc.
438015: Latest qRFC version and supplement for 3.x, 4.x, 6.10, 6.20
442478: 40 from 18.06.2002, Installation of qRFC version 6.20.043
460235: tRFC/qRFC: Low-speed processing
481278: qRFC version
788872: SEND_XML-Parameter auf 'X'
814822: SEND_XML-Parameter auf 'X'
378903: Queue status in SMQ1, SMQ2 and table ARFCRSTATE
525549: QOUT scheduler: Registration for qRFC
If an error occurs in an LUW, the function modules of the queue entries are rolled back. The relevant LUW
and all of the other LUWs in the queue remain in the queue and in the inbound qRFC tables.
After correcting the error, transaction SMQ2 can be used to re-transmit the LUW of the queue.
Relevant SAPNET-Notes
529764: Using inbound queues for CSA queues
2005 SAP AG 26
Best Practice for Solution Management: CRM 4.0 Monitoring
Normally the LUWs written in the inbound queue are not automatically executed but are acted on by the
QIN-scheduler.
Field Descriptions:
Scheduler Status: normally displays a status of INACTIV.
The scheduler wakes-up every 2 minutes and whenever an application passes it something to process. It
returns to the inactive state if there is nothing to process or when finished processing.
Last update: displays the date and time of the most recent activity.
Can be used to determine when the inbound scheduler had its last update and so indicate its activity level.
Name of AS group (DEFAULT=all): application server group to use for processing
Normally the QIN Scheduler processes all registered queues using all of the application servers of the
local R/3 or CRM System (the AS group DEFAULT).
Alternatively the group of application servers to use can be explicitly specified:
Specify a group using transaction SM59 by selecting RFC RFC Groups
Specify a group directly using RZ12
Specify the application server group using transaction SMQR by selecting
Edit Change AS Group
Host ID: Name of the SAP instance including server/host name, SAP System identifier and SAP instance
number. The server that processed the last entry of this queue.
Number of active connections: connections that are actively processing
Queue parameters are changed by marking a queue name and then selecting Registration or using
function-code F6. The parameters can be changed in the secondary dialog window.
Parameters Descriptions
EXEMODE (Mode) The processing type for how the queue entries
are to be processed (dialog or background)
MAXTIME (Max. runtime) The maximum time that the scheduler should
spend on processing this queue before it
switches to the next queue
USERDEST (Destination with LOGON data) Local RFC destination (must have logon data)
2005 SAP AG 27
Best Practice for Solution Management: CRM 4.0 Monitoring
Note: If large queues have to be processed and no time-critical online processing is necessary, MAXTIME
can be set to 300 seconds to reduce the load caused by the inbound scheduler while reading large QRFC-
queues. After changing the parameters the queue must be registered again.
For SYSFAIL and CPICERR statuses, double-clicking on the status will display the corresponding error
text.
Further analysis of the syslog (SM21) or Development Trace (dev_rd, dev_rfc* and dev_w*) may be
required to identify errors.
2005 SAP AG 28
Best Practice for Solution Management: CRM 4.0 Monitoring
Relevant SAPNET-Notes
369007: qRFC: Configuration for the QIN Scheduler
The QOUT Scheduler can be used to determine how many work processes are used for sending
LUWs.
Only one work process should be used for sending to external servers. This setting is done for
each destination using transaction SMQS.
Report RSQOWKEX can be scheduled as a periodic batch job (every 30 minutes) for restarting all
outbound queues that are blocked by errors.
There can be one QOUT Scheduler for each SAP client when using registered destinations
By choosing the maximal number of connections running simultaneously you can limit the
resources on the sender and indirectly also on the receiver system.
See SAP Note 525549 for registration of destinations which have not fully specified the logon
data.
The relevant destination for tRFC can be registered and the number of MAX_CONN
specified
A destination to another SAP system (Type 3 in SM59) and the logon data (client, user,
password, language) are completely defined in SM59
2005 SAP AG 29
Best Practice for Solution Management: CRM 4.0 Monitoring
Scheduler Status Status of the Scheduler. To display the current status, update
the display
Name of AS Group Name of the RFC server group being used. The group name
DEFAULT is the default setting, and uses all application
servers that are available in the R/3 system.
(See transaction RZ12 for more information
Status Description
SYSFAIL A serious system error has occurred in the current QOUT Scheduler operation
CPICFAIL A communication error has occurred in the current QOUT Scheduler operation
2005 SAP AG 30
Best Practice for Solution Management: CRM 4.0 Monitoring
Destination Column: click on an entry and the screen changes to the SM59 transaction for the selected
RFC destination
Registration: all tRFC/qRFC messages are processed by the scheduler. MAXCONN and MAXTIME
parameters can be set when registering.
Registration without activation: MAXCONN and MAXTIME parameters can be set when registering.
Deregistration: No tRFC/qRFC messages will be processed (function used for debugging, admin, etc.)
QRFC Monitor: Outbound queue monitor (SMQ1) view for selected RFC destination
Excluding a destination in SMQS means that the tRFC records are transferred into the target system
without resource management, instead of through the QOUT scheduler (requests are sent without using
the outbound scheduler). Excluding QRFCs means deregistering a QRFC-destination with the result that
nothing will be processed for this destination.
To exclude a destination from being processed by the outbound scheduler, register the destination in
SMQS and then click on the destination and choose Edit Exclude.
The destination will then show as Type Ns destination, PRD in the example above. (the difference
between N and U means, N is processed by tRFC-manager, U is not processed.
By choosing the maximum number of possible simultaneously running connections you can directly limit
the resources on the sender system and also indirectly on the receiver system.
Relevant SAPNET-Notes
400330: SMQS
480543: SMQS
Transaction SM58
Transaction SM58 shows the status of all transactional RFCs in CRM server.
2005 SAP AG 31
Best Practice for Solution Management: CRM 4.0 Monitoring
Additional information about the caller, function module, target system, date, time and status text is
displayed. Also information about the transaction ID, Host, current transaction code, program, client and
number of attempts establishing the connection are displayed.
(De)activation of SM58
Transaction SM58 cannot be switched off.
READ: CMC call was successfully executed in the target R/3 System
For terminated TRFCs you have to check for SYSFAIL. Technical errors are reported as CPIC-errors and
reprocessed automatically by destination settings (SM59, choose the relevant destination Destination
TRFC options: If there is no X in suppress Background Job, an automatic reprocessing with ARFC
jobs is triggered) or scheduling the report RSARFCEX and switching off the automatic reprocessing in
SM59.
When error messages appear in the SM58 display, the error condition(s) must be resolved before re-
execution of the tRFC procedure.
When the problem is corrected, the tRFC should be manually re-executed / deleted.
If the failed messages are successfully reprocessed, the entry does not appear in the SM58 display after
refreshing the screen.
Do not delete an entry before resolving the problem because this can lead to a data inconsistency.
Sample SM58 screen:
2005 SAP AG 32
Best Practice for Solution Management: CRM 4.0 Monitoring
The monitor data reported to Visual Administrator, SAPs CCMS, File System, and Monitor Server GUI
tool is the same, but is organized in a different way.
The monitor data for each cluster element is separated in two main groups: Workload and Configuration.
Setup
The setup of the J2EE 620 monitoring is described in detail in https://service.sap.com/crm-inst under
General and Technical Installation Guides CRM Monitoring installation guide on WAS JAVA 6.20.
2005 SAP AG 33
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Description Frequency
CCMS / Admin Console Workload / Requests Hourly/daily
CCMS / Admin Console Workload / Memory Hourly/daily
CCMS / Admin Console Workload / Sessions Hourly/daily
CCMS / Admin Console Workload / Threads Hourly/daily
Admin Console Workload / Logs On request
Admin Console Workload / Database Pools On request
Admin Console Workload / Connections Manipulator On request
Admin Console Workload / Transactions On request
CCMS / Admin Console Configuration / Service status On request
CCMS / Admin Console Configuration / System Info On request
Workload
Contains all dynamically changing information related to the runtime behaviour of the system.
Currently the Workload provides information for:
Requests
Displays information about the number of HTTP and P4 requests and responses processed by the SAP
J2EE Engine.
The data in the application node is displayed separately for HTTP requests and P4 requests and is
distributed as follows:
Total number of Requests: total number of requests received since startup
Total number of Responses: total number of responses returned since startup
Maximum time for Request: maximum period (in milliseconds) for executing a request from
startup to the present
Average time for Request: average time (in milliseconds) for response to a request
Waiting Requests: number of requests waiting to be processed.
The type of this property is int. Its value range is a non-negative number.
New requests count: number of requests, which were processed since the time of the last report
of the Monitor Server.
New response count: number of responses which were sent since the time of the last report of
the Monitor Server.
Average response time for new requests: average time (in milliseconds) for executing a new
request.
The data in the dispatcher node is aggregated for all requests received by the dispatcher from the
separate application nodes.
2005 SAP AG 34
Best Practice for Solution Management: CRM 4.0 Monitoring
Memory
SAP J2EE Engine has internal memory management, which is responsible for managing the memory
usage of the server, and prevents lack of memory by using a system based on memory level warnings to
the services. After a service has received a warning for critical memory level it starts actions on its side to
manage the problem.
Sessions
The Session monitor provides aggregated information about the user sessions. This component displays
monitor data about the Login System and the HTTP Sessions for the relevant cluster node.
Login Sessions: used for collecting data about user sessions on SAP J2EE Engine. Displays summary
information about all user sessions, as well as a list of all logged users and additional information about
their sessions.
Note: To view a detailed list of all active HTTP sessions, use the HTTP_SESSIONS shell command from
the HTTP shell command group by typing the following in your application node command line:
add http
http_sessions
2005 SAP AG 35
Best Practice for Solution Management: CRM 4.0 Monitoring
Threads
The SAP J2EE Engine thread management system is organized to handle threads in two different thread
pools. The first pool is used by the system itself (SystemThreads); the other pool is used for processing
client requests (ClientThreads).
The type of reported data is the same for both SystemThreads and ClientThreads groups:
Initial threads: the number of threads specified by the InitialThreadCount property in the
ThreadManager
Current threads: the number of all currently started threads.
Equal to the sum of all running and idle threads.
Peak threads: the maximum number of current threads since startup
Running threads: the number of threads currently running
Idle threads: the number of the idle threads
Waiting threads at RQ: the new requests waiting in a request queue (RQ).
When the value of this property becomes too big, this means that the system needs more
threads to operate properly and you must increase the value of the InitialThreadCount
property in the ThreadManager.
RQ current capacity: the capacity of the request queue
Logs
Displays the log messages about all significant events that have occurred on the relevant cluster node.
Database Pools
Provides information about the status of the database pools deployed on SAP J2EE Engine, details about
the current number of connections in use and the number of requests waiting for a database connection.
Connections Manipulator
Provides information about the connections used by the P4 and HTTP Service.
Transactions
Contains monitor data about the transactions executed by SAP J2EE Engine.
The data is displayed as follows:
Active transactions count: the number of active transactions
Committed transactions count: the number of transactions committed by SAP J2EE engine
Rolled back transactions count: the number of rolled back transaction
Average time for commit: the average time for committing a transaction
Average time for rollback: the average time for rolling back a transaction
Total transactions count: the sum of the committed and rolled back transactions
Average time for transaction: the average time for executing a transaction
Fast transactions/Slow transactions: the number of fast and slow transactions
Min time/Max time: the minimum and maximum time for committing a transaction
2005 SAP AG 36
Best Practice for Solution Management: CRM 4.0 Monitoring
Configuration
Provides data which is related to the current configuration status of the system.
Services status
Displays all services and managers on the corresponding cluster node, their current state (Running or
Stopped), and the time of the last change of the corresponding service state.
System Info Provides general information about the cluster node and its environment:
Cluster element ID
Cluster element host/IP
Cluster element opened port
SAP J2EE Engine version
Java version
Operating system (OS) name
Operating system (OS) version
Java Virtual Machine (VM) version
Java Virtual Machine (VM) vendor
Java Virtual Machine (VM) name
User directory
Startup Time
2005 SAP AG 37
Best Practice for Solution Management: CRM 4.0 Monitoring
Console Logs
SAP J2EE Engine 6.20 provides log files for monitoring the cluster elements console output.
The information printed on the command line is provided to <SAPj2eeEngine_install_dir>/cluster/server or
dispatcher/managers/console_logs directory and stored in two separate text files.
One of the files logs the output data about the loading and starting of the managers and services (for
example, Loading: LogManager ...). The name of the file includes the date and time of its creation and
output for marking the information that has been logged (for example,
2001_11_12_at_15_59_3_output.log).
The other file logs exceptions and errors that occurred during the running process of the cluster elements.
The name of the file contains the date and time of its creation and error for marking the information that
has been logged (for example, 2001_11_12_at_15_59_3_error.log).
Logging console output helps the system administrator to monitor the running processes of cluster
elements if the specific node is set as an NT Service, or no console is provided (such as in an SAP Web
Application Server).
For additional information see Administration Manual SAP J2EE Engine 6.20, pages 114/441.
2005 SAP AG 38
Best Practice for Solution Management: CRM 4.0 Monitoring
CCMS
The CCMS has a monitoring node for the ICM with information about threads, connections, queue-
length and memory pipes.
2005 SAP AG 39
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
Transaction SMICM Daily
ICM trace file In case of error
ICM http log file In case of error
2005 SAP AG 40
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 41
Best Practice for Solution Management: CRM 4.0 Monitoring
The following functions for starting, stopping, and managing the ICM are available from the
Administration menu:
Exiting the ICM: Choose Administration ICM Exit Soft or Hard Exit to soft-terminate (signal 2) or
hard-terminate (signal 9) the ICM.
With a soft termination, the ICM tries to send responses to its existing clients, but does not accept any
new connections.
With a hard termination, the process is simply terminated. All existing connections and, of course, all
requests are lost.
You can also monitor and administrate the ICM from the browser. The Web administration interface
provides the same functions as the ICM Monitor, and you have the advantage that you dont need a
SAPGUI and you do not have to be logged on to the computer where the ICM is running.
You can start it via the following URL:
http://<fully qualified ICM server name>:<ICM port>/sap/bc/bsp/sap/icm/default.htm
The functions are essentially the same as in the ICM monitor.
Trace Files
To display or reset the trace file dev_icm, choose Go To Trace File or Go To Trace Level.
You can also set the trace level here (values can be between 0 and 3; the default is 1). You can also
display just the start or the end of the file (the first or last 1000 lines). This is a very useful function for
large files. Choose Goto Trace File Display Start or Display End.
HTTP Logfiles
The access log contains a log of accesses to the ICM from an intranet or the Internet, and thus gives
you an overview of the activity on the ICM. You can also log accesses to the Internet (if the SAP Web
AS acts as the client).
A HTTP sub-handler implements logging in the ICM. This sub-handler statistically analyzes HTTP
requests and records requests.
The log handler uses the log file to serialize itself, making it a bottleneck.
It is therefore not usually activated.
The logging implementation procedure corresponds to the Apache Web Server mod_log_config
module.
2005 SAP AG 42
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 43
Best Practice for Solution Management: CRM 4.0 Monitoring
Template of TransferService.logmon.ini
In order to implement the alert monitoring of the transferservice.log a file called
TransferService.logmon.ini must be available in the folder D:\usr\sap\prfclog\logmon on the
communication station. The structure of this file is written according to the following template:
LOGFILE_TEMPLATE
DIRECTORY="c:\winnt\temp"
FILENAME="TransferService.log"
MTE_CLASS="CRM.FS.CommStation.LOG"
PREFIX=""
SHOWNEWLINES=1
ANALYZEMETHOD=""
MONITOR_LAST_FILE_MODIF=1
SHOWLINES=1
PATTERN_0="E "
VALUE_0=RED
2005 SAP AG 44
Best Practice for Solution Management: CRM 4.0 Monitoring
Setup
For the setup please refer to SAP Notes
420213, 209834, 371023 and 451166: SAPCCMSR
and
19227: SAPOSCOL
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
Qmtcnfg.exe For troubleshooting
SMWMCOMM Daily
Settings
With Qmtcnfg.exe Select Communication Station it is possible to set the current log level of the
transferservice.log. This is done in the field Current Trace File Settings.
The default entry is 2. For a deeper analysis the log level can be increased to 4.
In non-Unicode installations the CRM server destinations are configured via the
SAP DCOM Connector console (Program files SAP DCOM Connector SAP DCOM Connector
My Computer Destinations).
Unicode destinations are maintained with QMTcnfg.exe (QMTcnfg.exe Select Unicode SAP
Destinations).
2005 SAP AG 45
Best Practice for Solution Management: CRM 4.0 Monitoring
Settings
In order to display the statistics overview in SMWMCOMM, a report RSMWM_BSTAT_COLLECTOR must
run. It collects the necessary data from the BDoc message store for transaction SMWMFLOW. Since this
job is client dependent it must run for every client on the CRM server.
Information on the individual sessions between a site and the CRM server based on the data of
the responsible Communication Station
Statistics on the data exchange for each site for a certain period
Data on the utilization of the operating system of the respective Communication Station
A detailed description of how to use the Communication Monitor is provided in the online
documentation for CRM Middleware.
Relevant SAPNET-Notes
420213: Composite SAP note: Central monitoring of mySAP.com components
209834: CCMS agent technology (composite note)
371023: OS07/ST06: Monitoring of operating system data
451166: SAPOSCOL and CCMS agents: monitoring processes
19227: Open newest saposcol
747664: Send fails during ConnTrans on CRM Mobile Clients
2005 SAP AG 46
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
Queued In case of an error message in the data transfer phase
Transfer Service
Client Console After a support package is applied on each mobile client
In case of an error message in the import phase
Windows Performance Monitor In case of an error message
MS SQL Profiler In case of errors
MS SQL Query Analyzer In case of errors
TransferService.log In case of errors
2005 SAP AG 47
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 48
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 49
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 50
Best Practice for Solution Management: CRM 4.0 Monitoring
RFC trace
The srfc2com.dll and librfc32.dll are the higher-level RFC layers that perform the data conversion from
the RFC structures to readable data format. The transaction layer uses the srfc2com to specify the
metadata structures and empty ADO Recordsets. The librfc32 is internally used by srfc2com and
enables in filling the ADO Recordsets with the actual data. The librfc32.dll uses the drvadodb.dll to
access the database and fetch the top-level message in the inbound queue.
Alternatively, the librfc32 uses the drvadodb.dll to persist the data to the outbound queue in the RFC
format.
SQL trace
The SQL trace is activated via the profiler which is installed with the MS SQL server (not MSDE).
TL trace
The TL Trace, also known as the Receive Trace is useful when the import of data during the
ConnTrans fails. This is caused by the data inconsistency between the Mobile Client and the CRM
Server. This is designed as the top-level component containing the logic for importing data from the
inbound queue to the Application Tables. The Transaction layer requests the lower level RFC layers to
fetch the data from the inbound queues and decode the data from RFC format to readable data and
store it in the application tables.
ConnTrans trace
The ConnTrans trace provides information on the performance, status on the invocation of different
phases of ConnTrans, calling of the different transfer services and errors during any of the phases of
the transfer service. The information available in this trace is most useful when there are some errors
during the ConnTrans invocation.
The Inbound and Outbound Queues of the Mobile Client can be displayed using the Client Console via
Start Client Console Data Transfer Queue Manager.
2005 SAP AG 51
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 52
Best Practice for Solution Management: CRM 4.0 Monitoring
3. Execute the query by pressing F5 or on the Query menu, click Query Execute
2005 SAP AG 53
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 54
Best Practice for Solution Management: CRM 4.0 Monitoring
Logfiles
To effectively manage a Groupware Connector, it is necessary to get feedback about the activity and
performance of the connector and any problems that may occur. The Groupware Connector provides
comprehensive and flexible logging capabilities.
Note: The log files are generated when the connector is running. They consume hard disk space and
obsolete log files are not removed automatically. It is an administrative task to remove and backup
obsolete files.
In case of error in the workgroup connector the following trace files are available:
Connector log file: Provides information about all processed messages
Error log file: Provides a brief description of the error
Trace log file: Provides detailed error information if present. You may use the contents of the
error log to search the trace file for details.
ErrDumps subfolder: Contains detailed information about errors sent to CRM
A copy of the sent messages is stored on the local drive.
By default, all the above-mentioned error logging options are enabled. However they can be
individually disabled using the Administrator Tool.
2005 SAP AG 55
Best Practice for Solution Management: CRM 4.0 Monitoring
For further information refer to the SAP Groupware Connector Administration Guide.
You can find it in the SAP Service Marketplace (http://service.sap.com instguides mySAP
Business Suite Solutions mySAP CRM SAP CRM 4.0 General and Technical Installation
Guides SAP Groupware Connector 2.1 Administration
2005 SAP AG 56
Best Practice for Solution Management: CRM 4.0 Monitoring
Rollout Log
All activities that happen in the background during the rollout/replacement process can be logged to a
separate file for later use.
1. Choose from the Rollout Manager. The File Logging Options screen appears.
2005 SAP AG 57
Best Practice for Solution Management: CRM 4.0 Monitoring
For detailed information for configuring the Roll-Out manager refer to the SAP Help Portal:
httphelp.sap.com Documentation mySAP Business Suite SAP customer Relationship
management SAP CRM Support Release 1 SAP CRM Powered by SAP NetWeaver Process
Integration CRM Integration Services CRM Middleware Mobile Clients Mobile Client Rollout
Manager.
2005 SAP AG 58
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 59
Best Practice for Solution Management: CRM 4.0 Monitoring
1.1.6 Setup
The setup for the intelligence connector is best done using the corresponding installation guide for
CCMS monitoring which can be found at http://service.sap.com/crm-inst and then selecting General
and Technical Installation Guides. The guides correspond to those used for J2EE Engine version
(Either 6.20 or 6.40).
2005 SAP AG 60
Best Practice for Solution Management: CRM 4.0 Monitoring
Basics
The SAP Business Communication monitor set is supplied with the alert monitor for the monitoring of
the SAPphone environment. The SAPphone monitor is assigned to this monitor set. The data
collection methods for SAPphone are also supplied. These methods, which are to be scheduled
periodically, query the current operating status of the external communication components and store
the results.
The monitors of the SAP Business Communication Monitor Set can be accessed directly from the
SAPphone administration transaction SPHB. Select the required telephony server and choose Utilities
Alert monitor Display, specify the monitor (SAPphone) and choose Continue.
Note: the flag Server is to be monitored by alert monitor should be selected for this purpose.
The monitor for SAPphone can be also called directly in the central alert monitor display.
Run transaction RZ20 or choose Administration CCMS Control/Monitoring Alert Monitor.
Depending on the setup of CCMS, auto-reaction methods, such as the sending of an email or an SMS
to the system administrator, could be raised by this alert (see SAP note 176492).
2005 SAP AG 61
Best Practice for Solution Management: CRM 4.0 Monitoring
Setup
Monitoring for SAPphone is not automatically activated after the SAP system has been installed and
must be manual scheduled and activated.
Note: the SAPphone and SAPconnect data collection methods are not displayed using transaction
RZ21. You need to create the corresponding entries in RZ21 manually as described in SAP Note
546493.
A data collection method only queries the status of a communication component if you have marked
the corresponding node in the R/3 System as ready to be queried by the data collection method.
Therefore, you have to assign this attribute to every telephony server that represents an external
communication component that is to be monitored by the alert monitor.
Detailed information on how to activate and to setup monitoring for the SAPphone component is
available in SAP Online Help (http://help.sap.com) SAP Web Application Server 620 mySAP
Technology Components SAP Web Application Server Basis Services/Communication Interfaces
Communication Interfaces SAPphone (BC-SRV-COM).
Manual Monitoring
Overview Monitoring Tools
Tool Description Frequency
SPHB Details for SAPphone Administration In case of errors
SPHA Details for SAPphone Administration Extended In case of errors
Settings
2005 SAP AG 62
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 63
Best Practice for Solution Management: CRM 4.0 Monitoring
Note: after the NONE server is created, you need to create a workcenter for you at your desktop
using that NONE server. Start transaction SPHA and assign the created NONE server as your
telephony server. Details regarding work center settings in transaction SPHA can be found in the
following section.
Relevant SAPNET-Notes
546493: Data collection method not displayed in RZ21
533667: SAPphone Call Status Control: Versions and updates
719873: SAPphone: DYNP_TOO_MANY_RADIOBUTTONS_ON dump in RSPHQUSR
To be able to use the telephony functions of the SAP System, the work center has to be created as a
telephone work center. The system needs to recognize which telephone belongs to which computer.
These settings are maintained using transaction SPHA.
Inbound calls can trigger various actions in SAPphone. For example, an application, such as the
creation of a purchase order, can be started. In the user settings, you can change the way the system
handles inbound calls to your work center.
After the SAPphone settings were changed or in case of errors, the telephony functions can be tested
in the transaction SPHA.
Using the SAPphone interface you take CIC out of the picture, which can help you to decide if the
error lies within CIC or outside. It can be used to check telephony functions and ANI identification.
2005 SAP AG 64
Best Practice for Solution Management: CRM 4.0 Monitoring
To simulate inbound calls, the button Simulate inbound call can be used. You need to specify
your extension and server. If caller identification should be tested, the calling number needs to
be specified as well. Press Initiate Call after having performed all required settings.
The button My telephone provides testing functionality for telephony functions on the
SAPphone interface.
2005 SAP AG 65
Best Practice for Solution Management: CRM 4.0 Monitoring
Setup
The setup for the ISA web application is best done using the corresponding installation guide for
CCMS monitoring which can be found at http://service.sap.com/crm-inst and then selecting General
and Technical Installation Guides. The guides correspond to the respective J2EE Engine version
(Either 6.20 or 6.40).
2005 SAP AG 66
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Description Frequency
COMM_PCAT_ADM Catalogue Maintenance After each replication
2005 SAP AG 67
Best Practice for Solution Management: CRM 4.0 Monitoring
Basics
2005 SAP AG 68
Best Practice for Solution Management: CRM 4.0 Monitoring
The primary function of the heartbeat is to check the availability of the system and its components.
Availability is defined in this guide by the following characteristics:
The availability information is usually technical.
Once it has been set up, the availability check is performed periodically and without user
interaction.
The result of the check is reported in the central CCMS. This means that an availability monitor
can be set up to centrally display the status of individual components. It is also possible to
implement automatic mechanisms and notifications using auto-reactions.
At the application level, availability is checked with the Generic Request and Message Generator
(GRMG).
With GRMG, the CEN system periodically calls a GRMG application using a URL.
The GRMG application performs component-specific checks and returns the result of the checks to
the CEN system.
SAP delivers a GRMG application for SAP CRM, the SAP J2EE Engine and several other SAP
components.
The availability check can be implemented differently for C-based components. For example, the
availability of the IPC is checked using a Shared Library (Data Supplier), which is periodically started
by the SAPCCMSR agent.
If a GRMG check is not possible or not useful for a component, it is at least possible to prove the
existence of the corresponding process at the operating system level. A check of this type establishes
the necessary (but insufficient) prerequisite for component availability. The check is performed by the
SAP program SAPOSCOL and the SAPCCMSR agent.
2005 SAP AG 69
Best Practice for Solution Management: CRM 4.0 Monitoring
The figure shows the availability of the IC WEBCLIENT on IC JCO PWDF0430 and the status as
listener.
Please check daily for alerts presented in this monitor. Do this using the Open Alerts button.
The Version Information shows the Versions of the IC WEB CLIENT Server.
This information is useful when contacting SAP support in case of problems.
2005 SAP AG 70
Best Practice for Solution Management: CRM 4.0 Monitoring
Logfile Monitoring
Automatic logfile monitoring is displayed in the Component Monitor under Logfile Monitoring.
This can be seen for each server. The Data Collection Check shows the last time that the logfile was
checked.
2005 SAP AG 71
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
RZ20 Daily
ST03N Weekly
Afterwards, you will be able to monitor the statistical records of the Internet Communication
Framework in ST03 and STAD under task type HTTP.
Note: The response time showed in the ST03 refers only to the server response time.
The frontend rendering time is not calculated here.
2005 SAP AG 72
Best Practice for Solution Management: CRM 4.0 Monitoring
The SAP CRM Interaction Center WebClient Java Server 1.0 should appear as installed, as shown in
the figure below:
2005 SAP AG 73
Best Practice for Solution Management: CRM 4.0 Monitoring
The current document only covers the implementation with the J2EE Engine. The BMS Java
component fully supports the SAP CCMS system monitoring for Java component and provides the
following features:
Single activity trace
Log files
Heartbeat and availability
Version and configuration
Performance monitoring
In order to make these features available, the SAP CCMSR agent and SAPOSCOL have to be
installed and configured. In addition, the GRMG file for this component has to be configured and
uploaded, as described in section Setup.
Information Description
2005 SAP AG 74
Best Practice for Solution Management: CRM 4.0 Monitoring
Component CRM.BMS
Application BROADCAST
Major version Current value appears
Minor version Current value appears
Support package Current value appears
Build time Current value appears
Changelist number Current value appears
Additional information Current value appears
Setup
For information about installing the CCMS agent and customizing the BMS for CCMS monitoring and
GRMG heartbeat monitoring, see CRM Monitoring Installation Guide <relevant release> in the SAP
Service Marketplace at http://service.sap.com/CRM-INST
Manual Monitoring
Overview Monitoring Tools
Tool Transaction Frequency
Single Activity Trace CRMC_IC_TRACE On demand
Transaction CRMC_IC_TRACE
Single Activity Trace is turned on for a user session by adding the user's login name to transaction
'CRMC_IC_TRACE. When the user logs on to the application using the user name added in the
above transaction the trace is started for that user session.
2005 SAP AG 75
Best Practice for Solution Management: CRM 4.0 Monitoring
The Central Log Viewer is part of the SAP J2EE Engine 6.20 Patch 12 and higher.
Central Log Viewer shows Log and Trace files written by Applications on the SAP J2EE Engine.
The Log Viewer documentation can be found in the SAP online help SAP NetWeaver Application
Platform Java Technology in SAP Web Application Server Administration Manual Server
Administration logging Log Viewer
or at
http://bis.wdf.sap.corp:1080/twiki/bin/view/Techdev/LogViewer
2005 SAP AG 76
Best Practice for Solution Management: CRM 4.0 Monitoring
RZ20 also displays a detailed list of important configuration parameters collected from several
configuration files as shown on the following screenshot:
2005 SAP AG 77
Best Practice for Solution Management: CRM 4.0 Monitoring
A logfile monitoring template can be downloaded from SAP Service Marketplace, and needs to be
customized. In the following example a subtree for the icsserror.log.0 would be displayed in RZ20. If
the agent finds the word Error, the subtree would be YELLOW, if the agent finds the word Fatal, the
subtree would be RED:
DIRECTORY="D:\usr\sap\J2EECRM05\j2ee\j2ee_05\cluster\server\services\servlet_jsp\work\jspTemp
\icss_b2c\root\WEB-INF\logs"
FILENAME="icsserror.log.0"
PREFIX="B2C"
PATTERN_0="Error"
MESSAGEID_0="rt 584"
VALUE_0=YELLOW
SEVERITY_0=100
MESSAGECLASS_0="SAP-T100"
CMP_FROM_BEGIN_0=1
PATTERN_1="Fatal"
MESSAGEID_1="rt 584"
VALUE_1=RED
SEVERITY_1=200
MESSAGECLASS_1="SAP-T100"
CMP_FROM_BEGIN_1=1
SHOWNEWLINES=1
ANALYZEMETHOD=""
MTE_CLASS="B2CICSS"
The monitor creates a subtree for every monitored file. The name of the subtree consists of a prefix
and the name of the file.
Setup
For implementation of CRM ICSS Monitoring refer to the CRM Monitoring Installation Guide
(http://service.sap.com/crm-inst General and Technical Installation Guides).
The guides correspond to the respective J2EE Engine version (Either 6.20 or 6.40).
2005 SAP AG 78
Best Practice for Solution Management: CRM 4.0 Monitoring
Basics
Monitoring transaction RZ20
The TREX Alert Monitor can be accessed via the predefined monitor Component Monitor: TREX
within the CCMS monitor set SAP CRM Monitor Templates.
2005 SAP AG 79
Best Practice for Solution Management: CRM 4.0 Monitoring
You can also display the content of the monitored files in the
Alert Monitor. To do this, double-click the Complete Name attribute in
which the name of the monitored file is displayed.
Info[<Name>] If you are searching for search patterns with no alert value, the
system displays the line that contains the search pattern
APPL_INFO_<n> in the text attribute
Info[<APPL_INFO_MTE_NAME_<n>>]
(see Examples of Logfile Templates).
Monitored Patterns Search pattern with alert value (see Examples of Logfile Templates);
you can monitor a file for multiple search patterns
(the system displays these in the monitor separated by | )
Lines found for pattern Lines of the log file that match the search pattern
2005 SAP AG 80
Best Practice for Solution Management: CRM 4.0 Monitoring
New Lines in Log File Growth of the monitored log file in lines per minute;
this attribute is created only if you specify the parameter
SHOWNEWLINES=1 in the log file template
Log File Size Size of the log file; this attribute is created only if you specify the
parameter MONITOR_FILESIZE_KB0 in the log file template
(if MONITOR_FILESIZE_KB>0, you also assign an alert threshold
value to the attribute by setting)
2005 SAP AG 81
Best Practice for Solution Management: CRM 4.0 Monitoring
Process Monitoring
The process monitoring is a standard functionality of the CCMS. With the operating system collector
SAPOSCOL it is possible to monitor individual processes. This can be used to monitor the processes
of the TREX (TREXDaemon.exe, TREXIndexServer.exe, TREXNameServer.exe, etc.).
The following table gives an overview of the content provided for each monitored process and
information about the monitoring tree elements (MTEs):
Monitoring Tree Meaning
Element
Process Configuration Status of the process monitoring; this node exists, even if no processes are
State being monitored
Process Count Number of running processes that fulfill the conditions for process name
(superordinate node) and user (prefix of the MTE name)
CPU Total of the CPU usage of the above processes, as a percentage
Resident Size Total physical memory that is assigned to the above processes
VM Size Total of the entire memory (physical and virtual) that is assigned to the above
processes (only on Windows platforms)
Setup
The setup of the TREX Monitoring is described in the following SAP notes.
TREX 6.0
SAP note 639786 TREX 6.0 Central Config & Alerting
SAP note 637124 TREX 6.0 Check of Heart Beat by using GRMG
TREX 6.1
SAP note 697949 TREX 6.1: Solution Management / Monitoring TREX
SAP note 704349 Activating the CCMS monitoring for TREX
2005 SAP AG 82
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
Activity Tracing In case of error
If activity tracing is activated, TREX processing steps that take place internally are also recorded.
TREX data is particularly useful to analyze actions such as searching, classifying, or creating an
index.
Additional steps have to be carried out to be able to use Activity Tracing. These steps are described in
the SAP note 697949.
2005 SAP AG 83
Best Practice for Solution Management: CRM 4.0 Monitoring
Basics
Monitoring transaction RZ20
The IPC Alert Monitor can be accessed via the predefined monitor Component Monitor: IPC within
the CCMS monitor set SAP CRM Monitor Templates.
The following figure shows the monitor definitions delivered in the monitor set.
2005 SAP AG 84
Best Practice for Solution Management: CRM 4.0 Monitoring
The figure shows that the IPC Server is listening on port 9999 and is registered at the dispatcher.
The functionality of Server, DB connection , Pricing Engine and Configuration Engine was tested by
the Heartbeat Call and resulted in an OK Status (Code=000).
The Open Alerts button should be used daily to check for alerts in this monitor.
2005 SAP AG 85
Best Practice for Solution Management: CRM 4.0 Monitoring
The Version Information shows the versions of the IPC Server (including Support Package level), the
version and patch level of the Java Virtual Machine.
Furthermore, information about the JCO Version used and the librfc32 shared library is displayed.
This information is useful when contacting SAP support in case of problems.
2005 SAP AG 86
Best Practice for Solution Management: CRM 4.0 Monitoring
This figure shows more configuration information as presented in the CCMS Monitor.
You have display-access to the main configuration files for IPC and additional selected parameters
from the IPC configuration like whether RFC connectivity is enabled or not and how many servers are
configured.
Setup
The setup of IPC Alert monitoring using sapccmsr is described in SAP Note 502461.
2005 SAP AG 87
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
IPC REMOTE MONITOR Daily
Report IPC_MON_TOOL (Available in CRM 4.0 as of SP08) Daily
You can test the basic installation of an IPC Server, execute different commands, and get statistical
information from the server, etc. using the remote monitor.
2005 SAP AG 88
Best Practice for Solution Management: CRM 4.0 Monitoring
This figure shows Information about memory usage, and session activity in the IPC Server.
If more Details are needed (such as the average execution time for all commands since IPC Server
Startup) you can switch on Command details and session details in the Stats tab.
For each command you will get the number of calls, average, maximum and minimum execution time.
2005 SAP AG 89
Best Practice for Solution Management: CRM 4.0 Monitoring
Relevant SAPNET-Notes
502461: CRM: CCMS agent plug-in for IPC
834919: CCMS IPC Monitor: Incorrect performance data
2005 SAP AG 90
Best Practice for Solution Management: CRM 4.0 Monitoring
Buffer entries (show how many buffer entries of the respective category are present in the
buffer)
o Procedure Object Manager 1
o Type Object Manager 39
o Limits Object Manager 0
o Condition Record Object Manager 206
Memory Information (VM memory usage for IPC)
o absolute Value in MB
o actual memory of the VM 127.44
o alocated memory of the VM 72.60
o free memory of the VM 54.83
o Values in percent
o allocated in % related to actual 57
o free in % related to actual 43
Server parameter
Memory Progress
2005 SAP AG 91
Best Practice for Solution Management: CRM 4.0 Monitoring
The Component Monitor of IC Workforce Management observes the topics below within the IC
Workforce Management components (IC WFM Application Server and IC WFM Calculation Server)
and generates alerts if critical situations occur. The information is displayed as a tree structure in the
monitor and the alerts are assigned to the corresponding nodes. For more information on the single
topics, use the F1 help for the node in the monitoring tree. The components IC WFM Application
Server and IC WFM Calculation Server fully support standard SAP CRM Monitoring Templates for
monitoring on your central monitoring (Solution Manager) system:
Automated Log files
Configuration
Component Version information
Heartbeat and availability
2005 SAP AG 92
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 93
Best Practice for Solution Management: CRM 4.0 Monitoring
For the Application Server the message IDs 1020 (for errors when connecting to the CRM 4.0 back-
end), 1079 (for errors while trying to obtain JMS connection to IC WFM Calculation Server) and
1080 (for errors while trying to obtain JMS context information from JNDI Service) are enabled, for
the Calculation Server the message ID 4201 (indicating a failed calculation request).
It is possible to enhance the number of displayed log messages adding the log message IDs to the
standard Logfile monitoring template. You can activate logfile monitoring for each instance of IC WFM
Application Server and IC WFM Calculation Server running on a different host.
Setup
The setup of alert monitoring for IC Workforce Management is described in the Solution Management
Guide mySAP Interaction Center Workforce Management Release 4.0.
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
IC WFM Application Server Log Upon problem analysis.
IC WFM Calculation Server Log Upon problem analysis.
Relevant SAPNET-Notes
788084: No iceLogs in http://<server>:<http_port>/sisopt/logs.jsp
811027: No iceLogs in http://<server>:<http_port>/sisopt/logs.jsp
2005 SAP AG 94
Best Practice for Solution Management: CRM 4.0 Monitoring
Consult IC WFM Application Server Log messages and message IDs (page 37 ff), or
IC WFM Calculation Server Log messages and message IDs (page 40 ff) for detailed description of all
errors and log messages.
2005 SAP AG 95
Best Practice for Solution Management: CRM 4.0 Monitoring
CCMS
The availability of each Content Server Engine can be monitored via CCMS. For that the table
SCMS_SERCS has to be maintained. (For details about the entries that have to be maintained see
OSS Note 484459).
Cache Server monitoring is initiated by maintaining table SCMS_SERCA and SCMS_SERPX.
With these entries the Content/Cache Servers are defined for CCMS.
After maintaining the tables availability monitoring through CCMS starts automatically.
With Report RSCMSSV the availability status of the monitored servers can be directly checked.
Version
By selecting the monitoring tree element for the Content Server, general information like the version
can be retrieved.
Setup
Setup for monitoring the Content server is described in OSS Note 484459.
2005 SAP AG 96
Best Practice for Solution Management: CRM 4.0 Monitoring
Manual Monitoring
Overview Monitoring Tools
Tool Frequency
Transaction CSADMIN Daily
Database Manager GUI Daily
Relevant SAPNET-Notes
484459: Downtime management for content servers
511866: Content Server Monitoring
2005 SAP AG 97
Best Practice for Solution Management: CRM 4.0 Monitoring
Setup
Setup of the alert monitoring for the CAT Server is described in the CRM Monitoring Installation Guide
4.0 SR1, NetWeaver04 and CRM Monitoring Installation Guide 4.0 on SAP Web AS Java Release
6.20.
2005 SAP AG 98
Best Practice for Solution Management: CRM 4.0 Monitoring
2005 SAP AG 99
Best Practice for Solution Management: CRM 4.0 Monitoring
Message Dumps: If this is set to Yes, then the MapBoxLauncher dumps incoming and outgoing
messages on the file system (recommended to keep default value No for performance reasons)
Setup
The setup for the MapBox is best done using the corresponding installation guide for CCMS
monitoring which can be found at http://service.sap.com/crm-inst and then selecting General and
Technical Installation Guides.
The guides correspond to the respective J2EE Engine version (Either 6.20 or 6.40).
Further Information
Troubleshooting
If applying the recommendations and executing the respective procedures documented in this
Best Practice did not produce the desired results and your production is endangered, please
contact SAP