80
A Guide to Monitoring SAP Web AS Java for Administrators Lee Johnson Basis Expert

aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Embed Size (px)

Citation preview

Page 1: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

A Guide to Monitoring

SAP Web AS Java for

Administrators

Lee JohnsonBasis Expert

Page 3: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

3

Page 4: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

4

Page 5: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Java Monitoring Architecture

5

Source: SAP

Page 6: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

6

Page 7: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

WAS Java Common Applications

Enterprise Portal

Internet Sales

Internet Customer Self Service

NetWeaver Development Infrastructure

Process Integration

Netweaver BI Java

Adobe Document Services

7

Page 8: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

8

Page 9: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Web AS Java Index Page (7.0)

System information

9

Page 10: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

10

Page 11: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 12: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 13: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Monitoring Service

13

System

Services

Performance

Kernel

Applications

Page 14: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

14

Page 15: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 16: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA 7.0 - Monitoring Overview

16

Page 17: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA – Java System Reports

17

Page 18: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports - Variables

18

Page 19: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports – Variables (cont.)

19

Page 20: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports – Select Report

20

Page 21: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports – Slowest Requests

21

Page 22: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports – Go to Detailed Chart

22

Page 23: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Java System Reports – Detailed Chart

23

Page 24: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Log Viewing

Select view

24

Page 25: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Log Viewing (cont.)

Page 26: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Log Viewing (cont.)

Filtered log

26

Page 27: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Log Viewing (cont.)

Record details

27

Page 28: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Log Viewing (cont.)

Full record information

28

Page 29: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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-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.Th

eme[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

29

Page 30: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Activity Trace (6.40)

30

Page 31: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA End to End Trace (7.0)

31

Page 32: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

32

Page 33: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Trace overview

33

Page 34: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Request overview

34

Page 35: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

SQL calls

35

Page 36: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Threads

36

Page 37: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA and Solution Manager

Different roles

37

Page 38: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA and Solution Manager (cont.)

38

Page 39: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA and Solution Manager Diagnostics

39

WAS 7.0 ABAP + JAVA

Page 40: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 41: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

41

Page 42: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Central Monitoring

Web AS Java

42

MonitoringSegment

SAPCCMSR

SAP Web AS Java

SAP System forCentral Monitoring

CEN

Central Monitoring permits monitoring a number of

systems from one central system. The system used for

Central Monitoring is referred to as CEN.

Page 43: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 44: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Activate Central System Dispatching

RZ21

44

Page 45: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Create CSMREG User

RZ21

45

Page 46: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Create CSMREG User (cont.)

RZ21 (cont.)

46

Page 47: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Create CSMREG User (cont.)

RZ21 (cont.)

47

Page 48: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Create Agent Configuration File

RZ21

48

Page 49: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Create Agent Configuration File (cont.)

RZ21 (cont.)

49

Page 50: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Register Java Instance

Visual Administrator

50

Page 51: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Check Java System in Topology

RZ21

51

Page 52: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 53: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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>_<Engine-

ID>_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

Page 54: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Setup – Entering Java Systems in ST03G (cont.)

54

Page 55: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Monitoring in CCMS

55

Page 56: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Monitoring in ST03G

56

Page 57: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Monitoring in STATTRACE

57

Page 58: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

CEN Monitoring in STATTRACE

58

Page 59: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 60: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

60

GOTCHA!

Page 61: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Connecting CEN to NWA - Configuration

Wizard

61

Page 62: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Central Monitoring - Central Reports

62

Page 63: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA Central Monitoring - Central Reports

(cont.)

63

Page 64: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

64

Page 65: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

WebDynpro Monitoring

WebDynpro Content Administrator

65

Page 66: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

WebDynpro Monitoring

WebDynpro Console

66

Page 67: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA – Open SQL Monitors

Where

toFIND it

67

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

Page 68: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Application Monitors

Enterprise Portal

68

Page 69: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

Application Monitors (cont.)

E-Commerce Administration

69

Page 70: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 71: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

71

Page 72: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What’s New in Java Monitoring

Java Information in Microsoft Management Console(MMC)

Expanded NetWeaver Administrator

NWA to replace Visual Administrator

72

Page 73: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

SAP Management Console in NetWeaver 7.1

73

Page 74: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

NWA in NetWeaver 7.1

74

SAP Management Console in NetWeaver 7.1

Page 75: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 76: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

What We’ll Cover …

Web AS Java

Visual Administrator

SAP NetWeaver Administrator

Central Monitoring

Other monitors

What's new?

Wrap-up

76

Page 77: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

77

* Requires login credentials to the SAP Service Marketplace

Page 78: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02

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

Page 80: aguidetomonitoringsapwebasjavaforadministrators-100611135603-phpapp02