Advanced Tuning: Unconventional Solutions to Everyday Problems Robert L Davis.

Slides:



Advertisements
Similar presentations
TempDB: Performance and Manageability
Advertisements

Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
DBI402. SQL Server Specialist, Financial Industry Boston, MA Conference and INETA Speaker Connections, PASS, TechEd, DevTeach, etc. Author SQL Server.
Anil Desai Austin CodeCamp 2010.
SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+
#RefreshCache Database Performance Tuning October 9-11, 2011 Tom Powers IT Applications Team Manager Southeast Christian Church Louisville, KY
By: Jose Chinchilla July 31, Jose Chinchilla MCITP: SQL Server 2008, Database Administrator MCTS: SQL Server 2005/2008, Business Intelligence DBA.
Capacity Planning in a Virtual Environment
Use the tools support uses.
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
SQL Server Performance and Analysis Tools Rob Carrol, SQL Server Premier Field Engineer, Microsoft.
5 Common SQL Server Performance Issues Jason Hall-SQL Sentry, Dir of Client Services Blog-jasonhall.blogs.sqlsentry.net.
Troubleshooting Techniques Lesson 29. Skills Matrix.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Thirteen Performing Network.
©Company confidential 1 Performance Testing for TM & D – An Overview.
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.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Virtual Memory Tuning   You can improve a server’s performance by optimizing the way the paging file is used   You may want to size the paging file.
Effective Methods for Analyzing Altiris Performance Sam Saffron | Development Manager | Altiris John Epeneter | Product Manager | Altiris Monitoring.
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
Connect Learn Share Performance Optimization for Microsoft Dynamics CRM Presented by: Walter Grow Austin Jones.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
Module 14 Monitoring and Optimizing SharePoint Performance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
Enterprise Database Administration & Deployment SIG ▪ 313M ▪ Sept 29, 2005 ▪ 10:15 AM SQL Server 2005 Performance Diagnosis and Tuning using SQL Tools.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
EOH: A Microsoft Partner INTRODUCTION TO EXTENDED EVENTS.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
Connect with life Praveen Srivatsa Founder and CEO – AstraSoft.NET Vinod Kumar Technology Evangelist – Databases and BI.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
SQL Database Management
AX Performance Tools Present and Future
Monitoring Windows Server 2012
Troubleshooting SQL Server high CPU usage
SharePoint Solutions Architect, Protiviti
SQL Server Data Collector From Every Angle
Query Performance Tuning: Start to Finish
SQL Server Monitoring Overview
Where to Start, What You Need
Microsoft Build /20/2018 5:17 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
SQL Server 2016 Query Data Store
Targeting Wait Statistics with Extended Events
Backup Monitoring – EMC NetWorker
Backup Monitoring – EMC NetWorker
Jean Joseph DBA\DEVELOPER
Using wait stats to determine why my server is slow
Presentation transcript:

Advanced Tuning: Unconventional Solutions to Everyday Problems Robert L Davis

Who am I?

Advanced Tuning: What is Tuning? Finding poor performance and making it better. Ensuring that the server is configured for optimal performance. Making use of the tools available to you find hidden problems and resolve them.

Advanced Tuning: Tools SQL Trace/Profiler (please dont use Profiler in production) Performance Monitor SQLDiag/PSSDiag SQLNexus RML Utilities PAL Tool Database Engine Tuning Advisor (DTA) SQLIO DMVs SQL Error Log Your creativity

Advanced Tuning: Tools SQL Trace/Profiler – Captures SQL activity Find out what is occurring internally in SQL Server Output to a trace file Profiler can correlate a trace file and a Performance Monitor file by time Performance Monitor – Captures server activity Find out what is occurring at the server level Output to a file SQL counters can be captured via sys.dm_os_performance_counters

Advanced Tuning: Tools SQLDiag/PSSDiag – Collects a variety of diagnostic data Windows Performance Logs Windows Event Logs SQL Traces SQL blocking info SQL Configuration info SQLNexus – Analyzes SQLDiag/PSSDiag data Creates easy to interpret reports and graphs Finds most expensive queries in trace files Provides details on resource waits statistics

Advanced Tuning: Unconventional Solutions to Everyday Problems

Advanced Tuning: Tools RML Utilities – Diagnoses SQL Server Performance data ReadTrace – consumes trace files Reporter – provides easy to understand reports on trace data consumed using Readtrace OStress – replays and stress tests queries ORCA – Ostress replay control agent PAL Tool – Performance Analysis of Logs Creates easy to read and understand graphs from Performance Monitor files Color codes graphs based on known thresholds to easily identify possible bottlenecks Requires Microsoft Chart Controls for.NET Framework 3.5

Advanced Tuning: Unconventional Solutions to Everyday Problems

Advanced Tuning: Tools Database Engine Tuning Advisor (DTA) Formerly Index Tuning Wizard Performs in-depth index analysis Can be based on a single query or a full trace file or work file Can perform What if? analysis to verify recommendations Limited in scope SQLIO – Determines I/O capacity of storage Should be used to verify I/O capabilities before deploying SQL to the storage Validates storage I/O capabilities through stress testing Not the simplest tool to learn Great tutorial by Brent Ozar on SQL Server Pedia:

Advanced Tuning: Tools DMVs – provides insight into the internal statistics and structures of SQL Server Developed to make troubleshooting easier SQL Team developers were challenged to try to fix bugs by only using data readily available to administrators DMVs for troubleshooting everyone should know: sys.dm_os_wait_stats – overall wait statistics for the server. Most are cumulative sys.dm_os_waiting_tasks – wait statistics for active tasks currently executing sys.dm_os_performance_counters – all SQL Server performance counters available to Performance Monitor also found here sys.dm_db_index_usage_stats – statistics on how your indexes are being used sys.dm_exec_cached_plans – query plans in the plan cache sys.dm_exec_sql_text – text of a query based on the sql handle. Joined to other DMVs to get the exact text to which they are referring sys.dm_os_buffer_descriptors – statistics on how the memory areas in the buffer pool are allocated sys.dm_exec_query_memory_grants – statistics on how much memory is allocated to individual queries or what memory grants are pending sys.dm_exec_requests – the current requests on the server sys.dm_exec_sessions – the current sessions on the server Glenn Berrys DMV a day series: dmv-a-day-series.aspx

Advanced Tuning: Tools SQL Error Log – error and other important information Wealth of information about alerts and errors occurring in SQL Server that may not be reported through any other means Very useful for capturing deadlock information via trace flags 1204 and 1222 Reports I/O freezing and excessive waits for I/O requests Reports when a torn page is recovered from a mirroring partner Your creativity – dont be afraid to think out of the box

Unconventional Solution to Everyday Problems Scenario: CPU utilization spikes No pattern to when they occur Are short term (< 10 min.) and disappear before operations personnel can react Performance critical production server Users are affected by the CPU spikes Solution: run a custom SQL trace automatically as soon as a CPU spike is detected and capture top 50 CPU consuming queries. This solution can be adapted to respond to any performance criteria that you can measure

Advanced Tuning: Unconventional Solutions to Everyday Problems

Unconventional Solution to Everyday Problems Scenario: How to measure replication latency without tracer tokens Replication latency can spike to high latency at times Tracer tokens not effective when latency is high Data freshness critical replication servers Monetary decisions based on replicated data Solution: query the Replication Monitor tracking tables and the replication system tables to determine current latency

Advanced Tuning: Unconventional Solutions to Everyday Problems

Q&A

Advanced Tuning: Unconventional Solutions to Everyday Problems Thank You! The PowerPoint slide-deck and the SQL code will be posted on my blog tonight: