© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

Advanced SQL Schema Customization & Reporting Presented By: John Dyke As day to day business needs become more complex so does the need for specifically.
ESafe Reporter V3.0 eSafe Learning and Certification Program February 2007.
Big Data Working with Terabytes in SQL Server Andrew Novick
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Capacity Planning in SharePoint Capacity Planning Process of evaluating a technology … Deciding … Hardware … Variety of Ways Different Services.
An Introduction to Infrastructure Ch 11. Issues Performance drain on the operating environment Technical skills of the data warehouse implementers Operational.
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
Acceleratio Ltd. is a software development company based in Zagreb, Croatia, founded in We create innovative software solutions for SharePoint,
MCTS Guide to Microsoft Windows 7
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Edgewood Solutions SQL Server Performance Tuning Concepts MDCFUG September 13, 2005 Jeremy Kadlec of Edgewood Solutions.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Agenda for Today Do Chapter 14 Final Project Review for Final.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
1 Installation Training Everything you need to know to get up and running.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
TOP 10 Thinks you shouldn’t do with/in your database
14.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 14: Monitoring Windows Server.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
AX Performance Tools Present and Future
Monitoring Windows Server 2012
Understanding and Improving Server Performance
SharePoint 2010 Performance and Capacity Planning Best Practices
Get the Most out of SQL Server Standard Edition
Monitoring SQL with System Center
SharePoint Solutions Architect, Protiviti
Benchmarking the forgotten Role of Performance Tuning
Query Performance Tuning: Start to Finish
MCTS Guide to Microsoft Windows 7
Very Large Databases in your future
SQL Server Monitoring Overview
Windows Azure Migrating SQL Server Workloads
Installation and database instance essentials
Where to Start, What You Need
Optimizing SQL Server Performance in a Virtual Environment
Introduction of Week 3 Assignment Discussion
Microsoft Build /20/2018 5:17 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Upgrading to Microsoft SQL Server 2014
Migration Strategies – Business Desktop Deployment (BDD) Overview
Dynamics AX Performance
Proving Hardware Bottlenecks &
Targeting Wait Statistics with Extended Events
SQL Server Performance Tuning
Kris Hokanson That’s bad mmmkay! …Or, how to know when your SQL Server isn’t working as well as it could.
Making Windows Azure Relevant to IT Professionals
Managing the mystery database
DEV315 Best Practices for running IIS 6.0 and ASP.NET
SharePoint 2013 Best Practices
Presentation transcript:

© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101

About Me: Brent Ozar SQL Server Expert for Quest Software Former SQL DBA Managed >80tb SAN, VMware Dot-com-crash experience Specializes in performance tuning

Today’s Agenda The Honda Civic and the Nissan GT-R Metrics, Trace, Mitigations A New Secret Weapon Resources and Q&A

If You Don’t Need to Go Fast… From

But The Faster You Want To Go

The More You Have To Measure

Windows “Check Engine” Light

And If You Wanna Go Fast:

Two Approaches to Detection Exceptions Monitoring: Check Engine Proactive Monitoring: Detailed Gauges

Where Do We Start? Hardware Windows SQL Server Tables, Indexes Query

Capture Metrics With Perfmon Performance Monitor, aka Perfmon Ships with all Windows versions Polls any server from your desktop Pulls performance metrics Writes them to a file Requires some OS permissions Does not include alerts or analytics

11

Memory Counters Memory – Available Mbytes Paging File - % Usage SQLServer:Buffer Manager – –Buffer cache hit ratio –Page life expectancy SQLServer:Memory Manager – Memory Grants Pending

Storage Metrics: Physical Disk % Disk Time Avg. Disk Queue Length Avg. Disk sec/Read Avg. Disk sec/Write Disk Reads/sec Disk Writes/sec

CPU Metrics Processor - % Processor Time System – Processor Queue Length SQLServer:General Statistics – User Connections (not CPU, just “other”)

16 The Raw Output: CSV Files

17 Adding Analytical Formulas

18 That’s a Lot of Zeroes!

19 Sorting High to Low

What To Look For, In Order System – Processor Queue Length Memory – Available Mbytes Lock pages in memory!

What To Look For Next Disk metrics on the page file drive Disk metrics on the log file drive Disk metrics on the data file drive Disk metrics on the TempDB drive

Got Everything on One Drive? Narrow it down with the DMV sys.dm_io_virtual_file_stats

What If We Could Data Mine It?

Table Analysis Tools For The Cloud

Detecting Categories of Load

Capture Queries with a Trace

Columns to Capture What’s Going On Text Data DatabaseID and/or DatabaseName Login Name Host Name Application Name What The Impact Was CPU Reads Writes Duration Start Time End Time

Profiler’s Results: A Trace Table

Order By Duration Descending

Casting and Grouping

Another Cloud Analytics Candidate

Another Way: Perf Dashboard

Correlate Metrics & Trace Show a cause and effect relationship Fields to mentally “join” on: –Date/Time ranges –CPU –Reads/Writes –Duration

Sample Problem #1 Metrics tell us: –Very high disk queue lengths on data drive Trace tells us: –Report queries doing table scans w/o indexes –Many scheduled reports run simultaneously

Ways We Can Mitigate It Add covering indexes Modify existing indexes Run reports serially, not all at once Add hard drives to the data file array Add memory to cache scanned tables

Sample Problem #2 Metrics tell us: –Page file drive queue lengths average >20 –Page file use averages >1% –Available memory averages <200mb –Buffer cache hit ratio and page life expectancy are high Trace tells us: –No unusual queries

Memory Configuration Server: 4gb ram OS: 1gb SQL: 3gb App: 1gb

Ways We Can Mitigate It Add memory and enable AWE/PAE Add memory and upgrade to 64-bit Reduce SQL’s min/max memory sizes Move the app to its own server

Sample Problem #3 Metric looks OK, but every 15 minutes: –Long drive queues on the log file drive –Page life expectancy drops near zero –Network traffic jumps Trace tells us: –Transaction log backups are running

Ways We Can Mitigate It Stop doing log backups Put the databases in simple mode Add drives to the transaction log array Throttle the transaction log backups

Sample Problem #4 Metrics tell us: –CPU average is high –Disk, memory look OK Trace tells us: –Queries are using cursors –Operating on individual records, not sets

How We Can Mitigate It Change cursor to set-based query Buy really fast processors Spend a lot on licensing

Wrapping Things Up Double-check the event log first Don’t get overwhelmed: focus with the Metric – Trace – Mitigation process Show a clear cause and effect Use cloud-based BI to get an edge

Resources On The Web My posts about Perfmon and analytics: Excel Table Analysis Tools for the Cloud: SQL Server community: SQLServerPedia.com