performance analysis tools in sap business information warehouse

33
BW302: Performance Analysis Tools in SAP Business Information Warehouse 3.5

Upload: naveen-kumar

Post on 29-Oct-2015

13 views

Category:

Documents


1 download

DESCRIPTION

sap

TRANSCRIPT

Page 1: Performance Analysis Tools in SAP Business Information Warehouse

BW302: Performance Analysis Tools in SAP Business Information Warehouse 3.5

Page 2: Performance Analysis Tools in SAP Business Information Warehouse

Mike Eacrett, SAP Labs LLC.

Alexander Peter, SAP AG

Page 3: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 3

Learning Objectives

As a result of this workshop, you will be able to:

Analyze a query performance issue

Explain different reasons for performance issues

Use a broad set of analysis tools delivered with SAP BW 3.5 and SAP WebAS 6.40

Page 4: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 5: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 5

Checklist – Query and Web Performance – Overview

ST03 / Technical Content

Database OLAP Front-end

1. Data Model

2. Query Definition

3. Aggregates

4. OLAP Cache

5. Pre-Calculated Web Templates

6. Compressing

7. Indices

8. DB Statistics

9. DB and basis (Buffer) Parameter

1. Data Model

2. Query Definition (including OLAP features)

3. Aggregates

4. OLAP Cache

5. Virtual Key Figures / Characteristics

6. Authorizations

1. Query Definition

2. Network

3. WAN and BEx

4. Client Hardware

5. VBA / Java

6. Documents

7. Formatting

8. ODBO / 3rd party

SQL Trace (ST05)

RSRV

RSRT, RSRTRACE

RSRT, RSRTRACE

SQL Trace (ST05)

ABAP Trace (SE30)

IEMON

RSRT, RSRTRACE

Which component contributes most?

Tools

Check these points

Page 6: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 7: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 7

Workload Monitor – What It Is

What it does …

… provides general performance-relevant KPIs

… provides BW-specific performance KPIs for queries

When you use it …

… as entry point for query- or InfoCube-specific performance issues

… to check in which area (database, OLAP, front-end) most of the query runtime is spent

… in order to analyze if aggregates could help

Page 8: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 8

Workload Monitor – Screenshot

Switch to expert mode

In the BW System Load section you’ll get overview on performance figures for

particular periods

Page 9: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 9

Workload Monitor – Screenshot

‘Aggregation’ switches between InfoCube and

query view

Page 10: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 10

Workload Monitor – Screenshot

High ‘Select./Transf.’ ratios might be a good

hint for aggregates

‘All Data’ provides you with further important

key figures

Page 11: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 12: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 12

SQL Trace – What It Is

What it does …

… to check if the DB statistics of your tables are up-to-date

… to check if your indices are existing and non-degenerated

… aggregates are used

… data model is sound

… buffers and caches are used as expected

… records all DB actions

… shows all DB statements

… displays the execution plan for each DB statement

When you use it …

Page 13: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 13

SQL Trace – Screenshot Execution Plan MS SQL

Note: the execution plan looks different for every DBMS.

Full Table Scan

Page 14: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 14

SQL Trace – Screenshot Execution Plan MS SQL – 2 –

Create Index on ODS Object for Sold-to-Party:

Index Seek

Page 15: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 15

SQL Trace – How To Read It

Reading Direction

1. Index Scan

Scan on complete index (clustered index scan means: full table scan)

2. Index Seek

Usage of index

3. Nested Loop

Read from inside out

Read a set of operations on the same level from top to bottom

Example

Page 16: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 16

SQL Trace – Screenshot Execution Plan ORACLE

Note different node names in ORACLE and in MS SQL

New: cost estimation per node

Page 17: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 18: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 18

Query Monitor – What It Is

What it does …

… enables you to execute and debug queries

… provides settings / parameters for queries

… gives elementary information on queries

When you use it …

… to check if and which aggregates are used for a query

… to have a look at the generated SQL statements

… to check if the OLAP Cache is used

… to get performance statistic figures on the query runtime

Page 19: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 19

Query Monitor – What It Is

Check Aggregates

Display SQL Statement for query

Show Execution Plan

Show BW Statistics

Bypass Cache, retrieve data from DB

Page 20: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 20

Demo

Demo

Page 21: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 22: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 22

ABAP Trace – What It Is

What it does …

… records (gross and net) execution times for ABAP function calls, method calls,DB statements, etc.

… can aggregate times and number of calls for each statement (recommended)

… uses variants to restrict tracing to function groups / classes

When you use it …

… to identify those parts of an ABAP coding which consumes most of the time (highest optimization potential)

… to check number of executions per call

… to locate origin of function / method calls

… e.g. to analyze customer specific coding like user exits, virtual key figures, etc.

Page 23: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 23

ABAP Trace – Screenshots

Page 24: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 24

ABAP Trace – Gross and Net Times

f2

f1

f3

Time

Gross times:

++ ++

Example:

Net times:

Page 25: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 25

ABAP Trace – Using Variants

New in SICF

Page 26: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 26

ABAP Trace – Setting Clock Accuracy

Some multiprocessor architectures have unsynchronized processor clocks

Migration of a process from one processor to the other can lead to negative / implausible execution times

Work-around: use software time measurement routines, i.e. set clock resolution to “Low” – from microseconds to milliseconds

Page 27: Performance Analysis Tools in SAP Business Information Warehouse

Overview

Workload Monitor

SQL Trace

Query Monitor

Runtime Analysis of Web Templates

Summary

Page 28: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 28

Summary

When faced with performance issues, use Workload Monitor (or BW Technical Content) to identify the area

The Query Monitor helps to analyze a query in detail (providing DB tools, breakpoints and debugging options)

SQL Trace and ABAP trace may help you for specific database and/or customer-specific ABAP coding problems

Page 29: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 29

Further Information

Public Web:www.sap.com

SAP Developer Network: www.sdn.sap.com BI

SAP Customer Services Network: www.sap.com/services/

Related Workshops/Lectures at SAP TechEd 2004ABAP353: Quick-Start on Performance Analysis (Hands-On)

Related SAP Education Training Opportunitieshttp://www.sap.com/education/

BW360: BW Performance & Administration

Page 30: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 30

SAP Developer Network

Look for SAP TechEd ’04 presentations and videos on the SAP Developer Network.

Coming in December.

http://www.sdn.sap.com/

Page 31: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 31

Q&A

Questions?

Page 32: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 32

Please complete your session evaluation.

Be courteous — deposit your trash, and do not take the handouts for the following session.

Feedback

Thank You !

Page 33: Performance Analysis Tools in SAP Business Information Warehouse

© SAP AG 2004, SAP TechEd / Session BW302 / 33

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries.

Oracle is a registered trademark of Oracle Corporation.

UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.

Java is a registered trademark of Sun Microsystems, Inc.

JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

Copyright 2004 SAP AG. All Rights Reserved