You are on page 1of 80

A Guide to Monitoring SAP Web AS Java for Administrators

Lee Johnson
Basis Expert

Download the presentation recording with audio from the Symmetry Knowledge Center www.sym-corp.com/knowledge-center

In This Session ...


This session will describe the monitoring tools needed to manage Web AS (WAS) Java It will also provide examples of administrating, monitoring, and troubleshooting Web AS Java

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

Java Monitoring Architecture

Source: SAP

Java Monitoring Tools


JMX (Java Management Extended) JARM (Java Application Response Time Measurement) SAT (Single Activity Trace) DSR (Distributed Statistics Records) Performance Trace SQL Trace Log Viewer

WAS Java Common Applications


Enterprise Portal Internet Sales Internet Customer Self Service NetWeaver Development Infrastructure Process Integration Netweaver BI Java Adobe Document Services

Web AS Java Monitoring Release Differences


Web AS 6.20
No NetWeaver Administrator (NWA) Visual Administrator and CCMS are primary tools

Web AS 6.40
Introduction of NWA in SP 12 Integrated Monitor Service

Web AS 7.0
New functionality some reconfiguration

Examples in the subsequent slides

Web AS Java Index Page (7.0)


System information

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

10

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 tool Administrating and changing the properties either specific or common for each service or manager Runtime administration and control

11

Visual Administrator (cont.)


Includes functions for: (cont.)
Deployment of applications on all cluster elements Viewing logs Viewing current performance and limited performance history Viewing current sessions

12

Monitoring Service

Applications

Kernel

Performance

Services

System

13

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

14

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

15

NWA 7.0 - Monitoring Overview

16

NWA Java System Reports

17

NWA Java System Reports - Variables

18

NWA Java System Reports Variables (cont.)

19

NWA Java System Reports Select Report

20

NWA Java System Reports Slowest Requests

21

NWA Java System Reports Go to Detailed Chart

22

NWA Java System Reports Detailed Chart

23

NWA Log Viewing


Select view

24

NWA Log Viewing (cont.)

NWA Log Viewing (cont.)


Filtered log

26

NWA Log Viewing (cont.)


Record details

27

NWA Log Viewing (cont.)


Full record information

28

NWA Log Viewer


Look for key words and phrases
Example from log
Unable to parse template '<System.scheme>://<System.servername>:<System.serverport><BWLaunc herComponent[PORTAL_URL]>;jsessionid=<Request.JSessionID>?sap-bwiViewID=<FPN.PCDHomeLocation[URL_ENCODE]>&sap-extsid=<ESID[URL_ENCODE]>&sap-pp-producerid=<producerID>&sap-ppconsumerBaseURL=<Request.BaseURL[URL_ENCODE]>&theme=<LAF.Th eme[URL_ENCODE]>&saplafversions=<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

29

NWA Activity Trace (6.40)

30

NWA End to End Trace (7.0)

31

NWA End to End Trace (7.0) (cont.)

32

NWA End to End Trace (7.0) (cont.)


Trace overview

33

NWA End to End Trace (7.0) (cont.)


Request overview

34

NWA End to End Trace (7.0) (cont.)


SQL calls

35

NWA End to End Trace (7.0) (cont.)


Threads

36

NWA and Solution Manager


Different roles

37

NWA and Solution Manager (cont.)

38

NWA and Solution Manager Diagnostics

WAS 7.0 ABAP + JAVA

39

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

40

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

41

Central Monitoring
Web AS Java

SAP Web AS Java


SAP System for Central Monitoring

Monitoring SAPCCMSR Segment

CEN

Central Monitoring permits monitoring a number of systems from one central system. The system used for Central Monitoring is referred to as CEN.
42

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

43

CEN Setup Activate Central System Dispatching


RZ21

44

CEN Setup Create CSMREG User


RZ21

45

CEN Setup Create CSMREG User (cont.)


RZ21 (cont.)

46

CEN Setup Create CSMREG User (cont.)


RZ21 (cont.)

47

CEN Setup Create Agent Configuration File


RZ21

48

CEN Setup Create Agent Configuration File (cont.)


RZ21 (cont.)

49

CEN Setup Register Java Instance


Visual Administrator

50

CEN Setup Check Java System in Topology


RZ21

51

CEN Setup Entering Java Systems in ST03G


Start the Global Workload Monitor in CEN by calling transaction ST03G In the navigation bar, expand the Settings & Log subtree, and double-click the System Selection entry Add an additional row to the desired list of monitored components by choosing the (Append Row) button

52

CEN Setup Entering Java Systems in ST03G (cont.)


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>_<EngineID>_JDBI

Comp. Type SAPJ2ENode or SAPJDBI Mon. Sys. System ID of the primary system with which the agent is registered Mon. 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

53

CEN Setup Entering Java Systems in ST03G (cont.)

54

CEN Monitoring in CCMS

55

CEN Monitoring in ST03G

56

CEN Monitoring in STATTRACE

57

CEN Monitoring in STATTRACE

58

NWA Central Configuration


Perform the following steps:
Configure and activate the System Landscape Directory (SLD)
Activate the Object Server Load the CIM model Start the Data Supplier Bridge

Adjust the Central Monitoring System (CEN)


For every instance of a J2EE Engine:
Register a CCMS Agent SAPCCMSR

For every ABAP instance:


Register a CCMS Agent SAPCCM4X

Register CCMSPING and assign the monitored systems

Setup NWA connections

59

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!

60

Connecting CEN to NWA - Configuration Wizard

61

NWA Central Monitoring - Central Reports

62

NWA Central Monitoring - Central Reports (cont.)

63

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

64

WebDynpro Monitoring
WebDynpro Content Administrator

65

WebDynpro Monitoring
WebDynpro Console

66

NWA Open SQL Monitors

Where to FIND it

http://hostname.domainname.com:5XX00/OpenSQLMonitors
67

Application Monitors
Enterprise Portal

68

Application Monitors (cont.)


E-Commerce Administration

69

Command Line Tools


JCMON
A tool for monitoring Java processes Similar to DPMON and GWMON Called from profile directory jcmon pf=xxxxxxx

Shell Administrator
Used to administer Java through telnet Shell Administrator - telnet to port 5NN08

70

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

71

Whats New in Java Monitoring


Java Information in Microsoft Management Console(MMC) Expanded NetWeaver Administrator NWA to replace Visual Administrator

72

SAP Management Console in NetWeaver 7.1

73

NWA in NetWeaver 7.1

SAP Management Console in NetWeaver 7.1

74

NWA in Netweaver 7.1


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

75

What Well Cover


Web AS Java Visual Administrator SAP NetWeaver Administrator Central Monitoring Other monitors What's new? Wrap-up

76

Resources
Steps to set up Central Monitoring
Monitoring Setup Guide for SAP NetWeaver 7.0 http://service.sap.com/operationsnw70*
Choose Monitoring

NW70 SP14 Help link


http://help.sap.com/saphelp_nw70/helpdata/en/2e/30e93adccb444b871f 3d4e7f905b84/frameset.htm

System monitoring
http://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

77

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

78

Download the presentation recording with audio from the Symmetry Knowledge Center www.sym-corp.com/knowledge-center

You might also like