How are my SSAS Cubes / Tabular Models Performing? Performance Monitoring

Similar documents
MOC 20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

MS 20467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

SQL Server 2012 End-to-End Business Intelligence Workshop

70-467: Designing Business Intelligence Solutions with Microsoft SQL Server

Designing Business Intelligence Solutions with Microsoft SQL Server 2012 Course 20467A; 5 Days

LEARNING SOLUTIONS website milner.com/learning phone

MS 50511A The Microsoft Business Intelligence 2010 Stack

Implementing Data Models and Reports with Microsoft SQL Server 2012 MOC 10778

SQL Server 2012 Business Intelligence Boot Camp

Microsoft End to End Business Intelligence Boot Camp

COURSE SYLLABUS COURSE TITLE:

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

End to End Microsoft BI with SQL 2008 R2 and SharePoint 2010

SQL Server Analysis Services Complete Practical & Real-time Training

The Microsoft Business Intelligence 2010 Stack Course 50511A; 5 Days, Instructor-led

Implementing Data Models and Reports with Microsoft SQL Server

Course 6234A: Implementing and Maintaining Microsoft SQL Server 2008 Analysis Services

ORACLE OLAP. Oracle OLAP is embedded in the Oracle Database kernel and runs in the same database process

SQL Server and MicroStrategy: Functional Overview Including Recommendations for Performance Optimization. MicroStrategy World 2016

Implementing Data Models and Reports with Microsoft SQL Server 20466C; 5 Days

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Microsoft Services Exceed your business with Microsoft SharePoint Server 2010

Power BI Performance. Tips and Techniques

Creating BI solutions with BISM Tabular. Written By: Dan Clark

Oracle BI 11g R1: Build Repositories

Managing the PowerPivot for SharePoint Environment

Monitor and Manage Your MicroStrategy BI Environment Using Enterprise Manager and Health Center

Microsoft SQL Business Intelligence Boot Camp

Microsoft Implementing Data Models and Reports with Microsoft SQL Server

PowerPivot for Advanced Reporting and Dashboards

SSIS Training: Introduction to SQL Server Integration Services Duration: 3 days

Microsoft Data Warehouse in Depth

Understanding Microsoft s BI Tools

SAP BO 4.1 COURSE CONTENT

SQL Server Administrator Introduction - 3 Days Objectives

SQL Server 2012 Performance White Paper

Analysis Services Step by Step

MS SQL Server 2014 New Features and Database Administration

Course 10977A: Updating Your SQL Server Skills to Microsoft SQL Server 2014

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

The Complete Performance Solution for Microsoft SQL Server

Reporting Fundamentals for Programmers

Implementing Data Models and Reports with Microsoft SQL Server

SQL SERVER BUSINESS INTELLIGENCE (BI) - INTRODUCTION

Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Presented by: Jose Chinchilla, MCITP

Oracle Database 12c: Performance Management and Tuning NEW

Business Intelligence with the PI System and PowerPivot

SQL Server 2008 Performance and Scale

Enterprise Performance Tuning: Best Practices with SQL Server 2008 Analysis Services. By Ajay Goyal Consultant Scalability Experts, Inc.

Informix Performance Tuning using: SQLTrace, Remote DBA Monitoring and Yellowfin BI by Lester Knutsen and Mike Walker! Webcast on July 2, 2013!

SQL Server 2016 BI Any Data, Anytime, Anywhere. Phua Chiu Kiang PCK CONSULTING MVP (Data Platform)

Microsoft SQL Server 2008 Bible

How to Migrate From Existing BusinessObjects or Cognos Environments to MicroStrategy. Ani Jain January 29, 2014

SQL Server Training Course Content

Building an Effective Data Warehouse Architecture James Serra

East Asia Network Sdn Bhd

Oracle Database 11g: New Features for Administrators DBA Release 2

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Designing Self-Service Business Intelligence and Big Data Solutions

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

In-Memory Analytics: A comparison between Oracle TimesTen and Oracle Essbase

MS 10977B Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Oracle Business Intelligence Foundation Suite 11g Essentials Exam Study Guide

Oracle Database 11g: SQL Tuning Workshop

SharePoint 2013 PerformancePoint Services Course 55057; 3 Days

Excel Excel 97 Add-In. Excel 2010 PowerPivot. Excel Add-In Pivot Table Services Office Web Components

Real-time Data Replication

Enterprise and Standard Feature Compare

EZManage V4.0 Release Notes. Document revision 1.08 ( )

About Me: Brent Ozar. Perfmon and Profiler 101

LearnFromGuru Polish your knowledge

Course Outline: Course: Implementing a Data Warehouse with Microsoft SQL Server 2012 Learning Method: Instructor-led Classroom Learning

Course 20463:Implementing a Data Warehouse with Microsoft SQL Server

Business Benefits From Microsoft SQL Server Business Intelligence Solutions How Can Business Intelligence Help You? PTR Associates Limited

DirectQuery vs In-Memory in BISM

SQL SERVER REPORTING SERVICES 2012 (POWER VIEW)

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014 va

Report Model (SMDL) Alternatives in SQL Server A Guided Tour of Microsoft Business Intelligence

System Requirements Table of contents

Building Cubes and Analyzing Data using Oracle OLAP 11g

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

10977B: Updating Your SQL Server Skills to Microsoft SQL Server 2014

Using Microsoft Business Intelligence Dashboards and Reports in the Federal Government

Microsoft SQL Server 2012 Administration

Top 10 Performance Tips for OBI-EE

Load Testing Analysis Services Gerhard Brückl

Performance Counters. Microsoft SQL. Technical Data Sheet. Overview:

Course: SAS BI(business intelligence) and DI(Data integration)training - Training Duration: 30 + Days. Take Away:

BI Architecture with SQL 2012 & SharePoint 2010

BI xpress Product Overview

Oracle Architecture, Concepts & Facilities

SQL Server 2012 and MySQL 5

Sai Phanindra. Summary. Experience. SQL Server, SQL DBA and MSBI SQL School saiphanindrait@gmail.com

SQL SERVER TRAINING CURRICULUM

Updating Your SQL Server Skills to Microsoft SQL Server 2014

Online Courses. Version 9 Comprehensive Series. What's New Series

Updating Your Skills to SQL Server 2016

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Transcription:

How are my SSAS Cubes / Tabular Models Performing? Performance Monitoring

Kenney Snell Profile 39 years of work experience in designing, developing and implementing software and databases; 28 years at UPS Oracle OpenWorld Speaker Achieving the Holy Grail of Rolling Database Upgrades IOUG World Conference Speaker Data Guard Broker, Rolling Upgrades Currently working as an Senior Database Administrator (DBA) in Microsoft SQL Server - Business Intelligence (MSBI) group at UPS Technologies SQL Server Enterprise 2012, SSAS cubes / tabular models, Dashboards, SSIS (ETL) Microsoft Business Intelligence (MSBI) Toolset Data Warehousing: ETL, Dimensional Modeling, and Reporting Hobbies Running, Photography, Woodworking Contact Info KenneySnell@bellsouth.net

UPS UPS Airlines UPS operates one of the world's largest, safest and most on-time airlines Over 500 aircraft Nearly 2,000 flight segments / day Reaching more than 700 destinations in over 200 countries Air system includes air hubs in Cologne, Germany; Shanghai, Miami (to serve Latin America) intra-asia hub in China, and Louisville (Worldport) Worldport has over 5.2 million square feet Heart of UPS s global air network Air sort capacity is 416,000 packages/documents per hour 300 acres with 135 aircraft parking positions Average # Daily UPS Flights 251 in/out bound flights

SSAS Cubes or Tabular Models Performance Agenda and Welcome Profile UPS Background Questions What to monitor in SSAS? What questions to ask about resource usage? How to monitor with Demos? SSAS Performance Architecture Tables and Scripts SSAS Performance Tabular Model Reports Questions

SSAS Performance Monitoring BI Questions Are you familiar with SSAS Cubes or Tabular Models? Have you built SSAS cubes? Have you built SSAS Tabular models Have you used PowerPivot, Power View, Office 365 or Power BI?

SSAS Performance Monitoring Resources Performance monitoring on SSAS is similar to monitoring a SQL Server Instance / database You need to monitor these system resources Memory CPU I / O (reads and writes) SSAS Multidimensional cubes Disk I/O Tabular models In Memory database Collection methods are the same for both

SSAS Performance Monitoring Resource Questions Is my memory configured correctly for the SSAS Instance? What is using all that memory on my SSAS Instance? Where does SSAS spend most of its time? In which object does SSAS spend most of its CPU time? How many aggregation misses are occurring on which Objects? What is the longest running query (MDX)? What are the top 20 longest running queries? Who is connecting to the SSAS server? Which sessions are using the most reads and writes?

SSAS Performance Monitoring Collection Methods Data Management Views (DMV) PowerShell script to get SSAS memory Performance Counters ASTrace (Windows Service)

Dynamic Management Views (DMV) What are they? DMVs are query structures that expose information about Local SSAS server operations Server health Views exist for SSAS Same for Cubes or Models There are 60 DMVS SELECT * FROM $System.DBSchema_Tables WHERE TABLE_TYPE = 'SCHEMA' ORDER BY TABLE_NAME ASC DMV queries return information about operations and resource consumption that are not available through other means Writing a DMV query is simpler because the query syntax is based on SQL Select as From <DMV> Where Order by

Dynamic Management Views (DMV) Important ones (Demos) Discover_object_memory_usage Lists the memory usage for each object cube, dimension, cache, measure, partition, etc. select * from $system.discover_object_memory_usage order by Object_Memory_nonshrinkable desc Discover_object_activity Stores information since start up; like reads, rows scanned What object is consuming the most CPU? What aggregations are missing How many times these objects were read, and how many rows were returned select * from $system.discover_object_activity order by Object_CPU_Time_MS desc order by Object_Aggregation_Miss desc Discover_sessions Lists the MDX/command used by each user, which SSAS database/cube they are using Session Reads and writes, How much CPU and memory is used Last Command select * from $system.discover_sessions Discover_connections Lists who s connecting to the server, Since when, for how long, and From which PC (IP) and using what client Select * from $system.discover_connections

SSAS Performance Counters Memory Performance Counters requests the current value of performance data at specified time intervals (collection point) Memory Counters are available for both SSAS cubes and Tabular Models Main counters for memory are Memory Usage KB - Total of private virtual memory allocated by Analysis Services Corresponds to Process \ PrivateBytes counter Provided by the OS Memory Limit Low KB - returns the actual amount of memory that corresponds to the threshold set by the LowMemoryLimit property Memory Limit High KB - returns the actual amount of memory that corresponds to the threshold set by the TotalMemoryLimit property Memory limit hard KB Maximum memory SSAS can ever allocate Memory limit Vertipaq KB (SSAS Tabular)

SSAS Performance Counters Memory for SSAS Multidimensional Cubes Memory Limit High KB - TotalMemoryLimit property (SSAS Instance) Memory Limit Low KB - LowMemoryLimit property (SSAS Instance) Memory Usage KB Memory used at collection Cleaner Memory KB non-shrinkable KB - amount of memory that cannot be purged by the Memory Manager Cleaner Memory shrinkable KB - amount of memory that can be purged by the Memory Manager

SSAS Multidimensional Memory Properties Instance Level

SSAS Performance Counters Memory for Tabular Models Memory Limit High KB - TotalMemoryLimit property (SSAS Instance) Memory Limit Low KB - LowMemoryLimit property (SSAS Instance) Memory Usage KB Memory used by query VeriPaqPagingPolicy Mode 0 xvelocity Data is locked in memory Mode 1 - xvelocity Data is not locked in memory Means that the in memory-engine can page data to disk if its running out of memory Hash dictionaries are locked Data pages can be paged to disk Allows xvelocity to use more memory than is available Memory limit Vertipaq KB Mode 0 Total about of memory that can be used for the in-memory database Model 1 Total amount of Physical memory that can be used; allowing paging for remaining memory Vertipaq Paged KB Memory paged to disk (Mode 1)

SSAS Tabular Memory Properties Instance Level

SSAS Memory Performance Counters DEMO

ASTRACE Captures info about MDX Queries ASTrace Windows Service that captures MDX text, CPU Duration of MDX queries Located on Codeplex and developed by former Analysis Services Program Manager Edward Melomed ASTrace 2.0 is available Run on SQL Server 2012 Requires SQL Profiler ASTrace Preconfigured with a Analysis Services Profiler template Stores results in SQL Server database Profile Question Profiler GUI consumes unnecessary memory and processor power capturing the trace events and displaying them on the screen. ASTrace runs as a Windows Service - doesn t consume lots of memory Uses an xml configuration file can be set up to Capture multiple SSAS instances Name the SQL Instance, database and table Restart and recovery operations

SSAS Performance / Monitoring Architecture SSAS Servers Performance Views DMV Performance Counters Profiler Trace SSIS Servers Central Admin DMV SSIS Package Perf CTR SSAS Package (ps1) ASTRACE Service Data Mart Servers SSAS Perf SSAS Performance Tabular Model SSRS (Native) Reporting Servers SSRS Clients

SSAS Performance Database BI_Mon_SSAS (Tables) [BI_AppData].[ssas_Command_Objects] contains $system.discover_command_objects [BI_AppData].[ssas_Commands] contains $system.discover_commands [BI_AppData].[ssas_connections] contains $system.discover_connections [BI_AppData].[ssas_memory] contains Memory Performance Counters [BI_AppData].[ssas_memory_usage] contains $system.discover_object_memory_usage [BI_AppData].[ssas_object_activity] contains $system.discover_object_activity [BI_AppData].[ssas_sessions] contains $system.discover_sessions [dbo].[astracetable_<ssas_server>] contains ASTrace MDX query data

SSAS Performance Tabular Model Dimensions / Facts

Data Loaded into the model Rows Loaded

SSAS Performance Reports SSRS Run jobs to Capture SSAS performance data Process SSAS Fact Tables Run Reports

SSAS Aggregations Design Why are they so important? Aggregations are pre-summarized datasets stored in your cube Aggregations are similar to a Group By clause used in a SQL Select statement select CustomerKey, ProductKey, count(orderquantity) Orders,sum(SalesAmount) Sales from [AdventureWorksDW2012].[dbo].[FactInternetSales] group by CustomerKey, ProductKey, OrderQuantity, SalesAmount If the aggregations are stored then the SSAS Storage Engine has less work to do a run time Building the correct aggregation is one of the most important tasks you can do to improve query performance Good Dimension design is the key to getting the most out of your aggregations. Creating Natural Hierarchies (Date: Year, month, day) Two Aggregation Wizards Design Aggregation Creates first draft of what the wizard thinks you need Usage Based Optimization Collect User Queries and log to SQL Table

Aggregation Wizards Visual Studio

SSAS Cubes or Tabular Models Questions

How are my SSAS Cubes / Tabular Models Performing? Kenney Snell Contact Info KenneySnell@bellsouth.net