SAP BW Performance Monitoring with BW Statistics

  • View
    1.676

  • Download
    11

Embed Size (px)

Text of SAP BW Performance Monitoring with BW Statistics

Know How Network: SAP BW Performance Monitoring with BW StatisticsRon Silberstein Platinum Consultant - Business Intelligence Netweaver RIG US SAP Labs, LLC

Agenda

2

BW Statistics Overview Monitoring with BW Statistics Reports Performance Monitoring Tools Detecting Optimization Potential Setting Up BW Statistics

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 2

Agenda

3

BW Statistics Overview

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 3

BW Statistics: Facts

4

SAP-delivered tools for analyzing and tuning system performance Delivered SAP Business Content Usage of tools requires Business Content installation Content Delivery Consists of: MultiCube InfoCubes Queries Workbook (New one as of BW 2.0B) InfoSources Transfer Structures, Transfer Rules, Update Rules InfoPackages, InfoPackage Groups

Role

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 4

BW Statistics: Facts (continued)Maintenance requires scheduling data loads and monitoring Delta load functionality delivered Transaction Data Master Data

5

One of several sources of performance monitoring information. Others include: ST03 > Expert Mode > BW system load Table RSDDSTAT Function Module RSDDCVER_RFC_BW_STATISTICS

Can be utilized when building aggregates System can propose aggregates from BW stats data

Object metadata of BW Statistics is transportable

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 5

BW Statistics: Data Flow Architecture

6

Turn on/off logging for each InfoCube!

Table RSDDSTAT

Queries

InfoSource InfoSource InfoSource

Update rules

aggregatesTable RSDDSTATAGGR

Update rules Update rules

warehouse management

BW Statistics MultiProvider Analysis by queries (in workbooks)

Table RSDDSTATWHM

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 6

Enable Capture of Statistical Performance DataChoose Tools > BW Statistics for InfoProviders

7

Can be turned on/off for OLAP/WHM

You can store new settings permanently

You can delete old data from database tables

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 7

ConsequencesIf the BW statistics are turned on, the systems collects data. These data is inserted in different tables:Tables, which are filled by OLAP: RSDDSTAT RSDDSTATAGGR RSDDSTATAGGRDEF Tables, which are filled by WHM: RSDDSTATWHM RSDDSTATCOND RSDDSTATDELE, ...

8

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 8

Agenda

9

Monitoring with BW Statistics Reports

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 9

Key Delivered Queries (BW Statistics Workbook)Use of OLAP for Each InfoCube (Time) Components of runtime per query

10

Use of OLAP for Each InfoCube (Records) Records selected / transferred

Query Runtime User, query, # of navigations, components of runtime

Use of OLAP by Date Use of OLAP according to time of day Mean Time Per Query Mean time per navigation

Data Load: Utilizing WHM per InfoSource

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 10

Example: SAP Delivered Graph (Workbook)

11

Total runtime (blue) by hour and Total number of records (red) by hour

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 11

Customer Report Example: Usage by Month (Cube)

12

# of Navigations

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 12

Customer Report Example: Usage by Month (User)

13

Enterprise view # of navigations by user

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 13

Example: Usage by Month (User) for a Cube

14

InfoCube view # of navigations by user

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 14

Customer Example: Aggregate Use Per Cube

15

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 15

Customer Example: Aggregate Use Per Cube

16

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 16

Agenda

17

Performance Monitoring Tools

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 17

Overview: Reporting Performance Analysis Tools18

Table RSDDSTAT

BW Statistics

BW Workload Analysis ST03N

Collecting information from table RSDDSTAT Function module RSDDCVER_RFC_BW_STATISTICS 2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 18

ST03 Workload Analysis BW Specific

19

Expert mode Expert mode Administrator Service engineer

1

BW System Load

2

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 19

ST03 - WorkLoad By InfoCubeHighest contributor in Total Run Time per InfoCube

20High % DB Time

Expert Mode!High ratio: Selected / transferred records

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 20

Using Table RSDDSTATIn transaction SE16, display table RSDDSTAT

21

Number of entries

INFOCUBE QUERYID QRUNTIMECATEGORY QNAVSTEP QDBSEL QDBTRANS QTIMEDB STARTTIME Width of output list Maximum no. of hits

to to to to to to to to

YYYYMMDDHHmmss

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 21

Settings of Table RSDDSTATChoose Settings

22

User parameters (F6)User-Specific Settings Repository Infosystem Data Browser Output list Width of output list Maximum no. of hits Display max.n.of hits possible ALV-Grid ALV-List SE16 standard list Keyword Field name Field text ITS Chan...

INFOCUBE QUERYID QRUNTIMECATEGORY QNAVSTEP QDBSEL QDBTRANS QTIMEDB STARTTIME Width of output list Maximum no. of hits

Check conversion exits

Set flag to display query names 2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 22

Important Fields in Table RSDDSTAT (1)Query name Runtime Category Database time Records selected on the database

23

Records transferred from the database to the OLAP

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 23

Agenda

24

Detecting Optimization Potential

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 24

Analyzing Reporting Performance IssuesBuilding Aggregates:

25

Primary technique for tuning reporting performance Analyze to determine if building aggregates will helpDifferent Starting Points: Analyze specific InfoProviders OR Find problem queries, then analyze them

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 25

Analyzing Reporting Performance Issues

26

Approach: Find InfoCubes of concern & consider aggregates

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 26

BW Statistics or ST03N: Find InfoCubes for Analysis27

Sort by mean overall time to find InfoCubes with queries having the highest runtimes

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 27

Stastistics for QueriesBEx AnalyzerFront-end

Web Browser

28

3

Query execution

Amount of data transferred to the front-end?

Front-end time?

OLAP processor

2

Number of rows transferred to the application server?

OLAP time?

Application Server Database Server

1

Number of rows selected on the database?

Database time?

InfoCube Data 2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 28

Aggregates

Indicators That Aggregates Will HelpLook for many more records selected than necessary!

One Key Indicator: Ratio records selected / records transferred > 10

29

Infocube

Number of records read on the database (QDBSEL)

AND

Records transferred after being summarized on the database (QDBTRANS)

Other Key Indicator:

Total query runtime (QRUNTIMECATEGORY)Start 2s 4s 6s 8s 10s 12s 14s 16s 18s

database time for queries > 30% of total query runtime20s End

Database time (QDBTIME) 2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 29

Analysis of BW Statistics at InfoCube Level (1)30

Database time ~40% of total runtime (6771 of 17 025 seconds)

Ratio records selected / records transferred: 24

Aggregates will probably improve query performance

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 30

Analysis of BW Statistics at InfoCube Level (2)31

Database time ~3,5% of total runtime (1011 of 28 540 seconds)

Ratio records selected / records transferred: 32

Aggregates will not improve query performance

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 31

Analysis of BW Statistics at InfoCube Level (3)32

Database time ~90% of total runtime (1420 of 1572 seconds)

Ratio records selected / records transferred: 1.1

Aggregates will not improve query performance

2003 SAP Labs, LLC, SAP Professional Journal Conference, Ron Silberstein 32

Analyzing Reporting Performance