Upload
mukesh-jha
View
297
Download
0
Embed Size (px)
Citation preview
© 2008 Wellesley Information Services. All rights reserved.
A Guide to Monitoring SAP Web AS Java for Administrators
Don KehoeSymmetry Corporation
11
In This Session ...
• This session describes the monitoring tools needed to manage Web AS (WAS) Java
• It also provides examples of administrating, monitoring, and troubleshooting Web AS Java
22
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
33
Underlying Infrastructure for Java Monitoring
• JMX (Java Management Extended)• JARM (Java Application Response Time Measurement)• SAT (Single Activity Trace)• DSR (Distributed Statistics Records)• Performance Trace
4
WAS Java Common Applications
• Enterprise Portal• Internet Sales• Internet Customer Self Service• NetWeaver Development Infrastructure• Process Integration• NetWeaver BI Java• Adobe Document Services
5
Web AS Java Monitoring – Release Differences
• Web AS 6.20No NetWeaver Administrator (NWA)Visual Administrator and CCMS are primary tools
• Web AS 6.40Introduction of NWA in SP 12 – Integrated Monitor Service
• Web AS 7.0New functionality – some reconfiguration
• Examples in the subsequent slides
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
6
Web AS Java Index Page (7.0)
• System information
77
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
88
Visual Administrator
• A graphical user interface (GUI) that enables administration of the SAP J2EE engine
• It provides remote monitoring and management of managers, services, libraries, and interfaces working on each element in a single GUI
• Includes functions for:Obtaining general information about a service, manager, interface, or library Logging on to the SAP J2EE Engine via the Visual Administrator toolAdministrating and changing the properties either specific or common for each service or managerRuntime administration and control
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
9
Visual Administrator (cont.)
• Includes functions for: (cont.)Deployment of applications on all cluster elementsViewing logsViewing current performance and limited performance historyViewing current sessions
10
Monitoring Service
System
Services
Performance
Kernel
Applications
1111
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
12
SAP NetWeaver Administrator
• SAP NetWeaver Administrator (NWA) is the new central administration and monitoring tool for the 6.40 and above Java systems of your SAP NetWeaver system landscape
• SAP NetWeaver Administrator is a Java application that ships with SAP NetWeaver 6.40 SP 12 and SAP NetWeaver 7.0
13
NWA 7.0 – Monitoring Overview
14
NWA – Java System Reports
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
15
NWA Java System Reports – Variables
16
NWA Java System Reports – Variables (cont.)
17
NWA Java System Reports – Select Report
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
18
NWA Java System Reports – Slowest Requests
19
NWA Java System Reports – Go to Detailed Chart
20
NWA Java System Reports – Detailed Chart
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
21
NWA Log Viewing
• Select view
22
NWA Log Viewing (cont.)
23
NWA Log Viewing (cont.)
• Filtered log
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
24
NWA Log Viewing (cont.)
• Record details
25
NWA Log Viewing (cont.)
• Full record information
26
NWA Log Viewer
• Look for key words and phrasesExample from log
Unable to parse template '<System.scheme>://<System.servername>:<System.serverport><BWLauncherComponent[PORTAL_URL]>;jsessionid=<Request.JSessionID>?sap-bw-iViewID=<FPN.PCDHomeLocation[URL_ENCODE]>&sap-ext-sid=<ESID[URL_ENCODE]>&sap-pp-producerid=<producerID>&sap-pp-consumerBaseURL=<Request.BaseURL[URL_ENCODE]>&theme=<LAF.Theme[URL_ENCODE]>&sap-lafversions=<LAF.AllVersions[URL_ENCODE]>&<BusinessParameters>'; the problem occured at position 138. Cannot process expression <FPN.d>
The above log led to Notes 1121154, then 1128730, and finally 1140854, which resolved the problem
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
27
NWA Activity Trace (6.40)
28
NWA End to End Trace (7.0)
29
NWA End to End Trace (7.0) (cont.)
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
30
NWA End to End Trace (7.0) (cont.)
• Trace overview
31
NWA End to End Trace (7.0) (cont.)
• Request overview
32
NWA End to End Trace (7.0) (cont.)
• SQL calls
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
33
NWA End to End Trace (7.0) (cont.)
• Threads
34
NWA and Solution Manager
• Different roles
35
NWA and Solution Manager (cont.)
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
36
WAS 7.0 ABAP + JAVA
NWA and Solution Manager Diagnostics
37
Solution Manager End to End (E2E) Diagnostics
• Structured analysis• Cross component diagnostics• Open diagnostics hub• End to end workload analysis• End to end trace• Additional tools
3838
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
39
Central Monitoring
• Web AS Java
MonitoringSegment
SAPCCMSR
SAP Web AS JavaSAP Web AS Java
SAP System forCentral MonitoringSAP System for
Central Monitoring
CENCEN
Central Monitoring permits monitoring a number of systems from one central system. The system used for Central Monitoring is referred to as CEN.
40
Steps to Set Up CEN System – Java
• Activate background and Central System Dispatching• Create the CSMREG user• Create the CSMCONF Start File for CCMS agents• Register the CCMS Agent SAPCCMSR in Visual
Administrator• Check Java instance in RZ21 Topology• Enter Java instance in ST03G
41
CEN Setup – Activate Central System Dispatching
• RZ21
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
42
CEN Setup – Create CSMREG User
• RZ21
43
CEN Setup – Create CSMREG User (cont.)
• RZ21 (cont.)
44
CEN Setup – Create CSMREG User (cont.)
• RZ21 (cont.)
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
45
CEN Setup – Create Agent Configuration File
• RZ21
46
CEN Setup – Create Agent Configuration File (cont.)
• RZ21 (cont.)
47
CEN Setup – Register Java Instance
• Visual Administrator
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
48
CEN Setup – Check Java System in Topology
• RZ21
49
CEN Setup – Entering Java Systems in ST03G
1. Start the Global Workload Monitor in CEN by calling transaction ST03G
2. In the navigation bar, expand the Settings & Log subtree, and double-click the System Selection entry
3. Add an additional row to the desired list of monitored components by choosing the (Append Row) button
50
CEN Setup – Entering Java Systems in ST03G (cont.)
4. Check Activated and enter the following data in this row:
Component Name under which the monitored system is displayed; use the following naming convention:
J2EE Engine:<Engine-Host>_<SysID>_<Engine-ID>Java Database Interface: <Engine-Host>_<Engine-SysID>_<Engine-ID>_JDBI
Comp. Type SAPJ2ENode or SAPJDBIMon. Sys. System ID of the primary system with which the agent is registeredMon. Sys. Dest. RFC destination of the system ID of the primary agent system; if a suitable destination does not yet exist, create this using transaction SM59
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
51
CEN Setup – Entering Java Systems in ST03G (cont.)
52
CEN Monitoring in CCMS
53
CEN Monitoring in ST03G
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
54
CEN Monitoring in STATTRACE
55
CEN Monitoring in STATTRACE (cont.)
56
NWA Central Configuration
• Perform the following steps:Configure and activate the System Landscape Directory (SLD)
Activate the Object ServerLoad the CIM modelStart the Data Supplier Bridge
Adjust the Central Monitoring System (CEN) For every instance of a J2EE Engine:
Register a CCMS Agent SAPCCMSRFor every ABAP instance:
Register a CCMS Agent SAPCCM4XRegister CCMSPING and assign the monitored systems
Setup NWA connections
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
57
Connecting CEN to NWA – Template Installer
• These templates are designed to connect NWA to an SLD on the same instance
• For monitoring your CEN, SLD and NWA should be on the same instance
If they are not, you need to do some steps manually• It makes sense for these tools to reside on the Solution
Manager instance• Some systems (NWDI, PI) should have Production Type
SLD• Solution Manager is not always considered a Production
Machine• Spend time creating an architecture for your monitoring
systems
GOTCHA!
58
Connecting CEN to NWA – Configuration Wizard
59
NWA Central Monitoring – Central Reports
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
60
NWA Central Monitoring – Central Reports (cont.)
6161
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
62
Web Dynpro Monitoring
• Web Dynpro Content Administrator
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
63
Web Dynpro Monitoring (cont.)
• Web Dynpro Console
64
NWA – Open SQL Monitors
http://hostname.domainname.com:5XX00/OpenSQLMonitors
Whereto
FIND it
65
Application Monitors
• Enterprise Portal
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
66
Application Monitors (cont.)
• E-Commerce Administration
6767
Command Line Tools
• JCMONA tool for monitoring Java processesSimilar to DPMON and GWMONCalled from profile directoryjcmon pf=xxxxxxx
• Shell AdministratorUsed to administer Java through telnetShell Administrator – telnet to port 5NN08
6868
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
6969
What’s New in Java Monitoring
• Java information in Microsoft Management Console (MMC)
• Expanded NetWeaver Administrator• NWA to replace Visual Administrator
70
SAP Management Console in NetWeaver 7.1
71
NWA in NetWeaver 7.1
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
72
NWA
• All important administrative functionality of Visual Administrator will be covered in NWA
• Visual Administrator will become obsolete• SAP NetWeaver Administrator starts focusing on Java • In the future, additional ABAP monitoring and
administration functionality will be included
7373
What We’ll Cover …
• Web AS Java• Visual Administrator• SAP NetWeaver Administrator• Central Monitoring• Other monitors• What’s new?• Wrap-up
74
Resources
• Steps to set up Central MonitoringMonitoring Setup Guide for SAP NetWeaver 7.0http://service.sap.com/operationsnw70*
Choose Monitoring• NW70 SP14 Help link
http://help.sap.com/saphelp_nw70/helpdata/en/2e/30e93adccb444b871f3d4e7f905b84/frameset.htm
• System monitoringhttp://service.sap.com/monitoring*
• Java Monitoring:http://sdn.sap.com
Choose SAP NetWeaver Capabilities > Lifecycle Management > Operations > Monitoring
* Requires login credentials to the SAP Service Marketplace
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
7575
7 Key Points to Take Home
• Your monitoring should be consistent and repetitive• Make notes on errors that occur normally in your Java
engine with no apparent ill effects• Configure Central Monitoring at least for plug-ins• Create a monitoring architecture• Carefully plan your SLD architecture• NWA will eventually replace Visual Administrator• Investigate the application monitors in your Java
applications
7676
Your Turn!
How to contact me:Don Kehoe
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
_________________________________
Notes: ______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Wellesley Information Services, 990 Washington Street, Suite 308, Dedham, MA 02026
Copyright © 2008 Wellesley Information Services. All rights reserved.