Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.

Slides:



Advertisements
Similar presentations
DAT 342 Advanced SQL Server Performance and Tuning Bren Newman Program Manager SQL Server Development Microsoft Corporation.
Advertisements

IS 4506 Tuning and Monitoring Internet Information Server.
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.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
6. Monitoring SQL Server Performance
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 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
11 MONITORING MICROSOFT WINDOWS SERVER 2003 Chapter 3.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Chapter Ten Performance Tuning. Objectives Create a performance baseline Create a performance baseline Understand the performance and monitoring tools.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
Windows Server 2008 Chapter 11 Last Update
M ONITORING SERVER PERFORMANCE Unit objectives Use Task Manager to monitor server performance and resource usage Use Event Viewer to identify and troubleshoot.
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.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Network and Active Directory Performance Monitoring and Troubleshooting NETW4008 Lecture 8.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Chapter 17: Watching Your System BAI617. Chapter Topics Working With Event Viewer Performance Monitor Resource Monitor.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
MCTS Guide to Microsoft Windows 7
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.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
© Wiley Inc All Rights Reserved. MCSE: Windows Server 2003 Active Directory Planning, Implementation, and Maintenance Study Guide, Second Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Agenda for Today Do Chapter 14 Final Project Review for Final.
Monitoring Windows Server 2012
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Chapter 10 System Monitoring Issues Performance Benchmarks NT Server Services Users and Server Access Information Task Manager for Applications Ram and.
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.
Module 10: Preparing to Monitor Server Performance.
Windows monitoring Unit objectives: Monitor the operating system Monitor system performance Backup and restore operating system files and data.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Windows Server 2003 系統效能監視 林寶森
MISSION CRITICAL COMPUTING Siebel Database Considerations.
1 Chapter Overview Developing a Performance Monitoring Methodology Choosing Among Monitoring Tools Performing Monitoring Tasks.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
Module 14 Monitoring and Maintaining Windows Server® 2008 Servers.
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
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.
Monitoring Servers Lesson 11. Skills Matrix Technology SkillObjective DomainObjective # Using the Reliability and Performance Console Monitor servers.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 10 Operating System Management.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
SQL Database Management
Monitoring Windows Server 2012
Curacao SQL Saturday June 11, 2016
Query Performance Tuning: Start to Finish
MCTS Guide to Microsoft Windows 7
SQL Server Monitoring Overview
MONITORING MICROSOFT WINDOWS SERVER 2003
Introduction of Week 3 Assignment Discussion
Migration Strategies – Business Desktop Deployment (BDD) Overview
Jean Joseph DBA\DEVELOPER
SharePoint 2013 Best Practices
Presentation transcript:

Module 8: Monitoring SQL Server for Performance

Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server Common Monitoring and Tuning Tasks

Why to Monitor SQL Server Optimize the Business Application of SQL Server Minimize the User or Query Response Time Maximize the Throughput

 Performance Monitoring and Tuning Strategies for Performance Tuning Selecting an Approach to Performance Tuning Developing a Performance Tuning Methodology Establishing a Performance Baseline Detecting Performance Bottlenecks Common Monitoring Tasks

Strategies for Performance Tuning Optimizing the Response Time Requires knowledge of the application, the environment, and the users Optimizing the Throughput Requires knowledge of how SQL Server handles data access, concurrency, and interaction with Windows 2000

Selecting an Approach to Performance Tuning Approach Optimization for Application Response Time and Server Throughput by: Tuning the client application Tuning the database Tuning SQL Server Tuning the hardware configuration

Developing a Performance Tuning Methodology Design for Performance Know the user requirements Know the data Design appropriately Plan for Performance Define the parameters Set performance goals Measure and document actions and results

Establishing a Performance Baseline SQL Server SQL Server Workload Throughput System Resources System Resources Optimization Contention

Detecting Performance Bottlenecks Decide What to Examine Memory, CPU use, disk I/O, user connection, and locks Know the Acceptable Range Extremes above or below the baseline may indicate bottlenecks

Common Monitoring Tasks SQL Query Analyzer Windows 2000 Event Viewer Windows System Monitor Current Activity window in SQL Server Enterprise Manager Transact-SQL SQL Profiler System-Level Monitoring Hardware Operating system Application SQL Server-Specific Monitoring SQL Server activity Data consistency Specific Query Performance

 Tools for Monitoring SQL Server Windows 2000 Event Viewer Windows System Monitor with SQL Server Current Activity Window in SQL Server Enterprise Manager Transact-SQL Tools SQL Profiler SQL Query Analyzer

Windows 2000 Event Viewer Windows 2000 Event Viewer Displays Error, Warning, and Informational Messages Windows 2000 Event Viewer Allows You to View Windows Event Logs Windows application log Windows system log Windows security log

Windows System Monitor with SQL Server Windows System Monitor Can Track: SQL Server I/O SQL Server memory usage SQL Server user connections SQL Server locking Replication activity

Current Activity Window in SQL Server Enterprise Manager SQL Server Process Information View by process ID View by object Locks, Blocking, and Deadlocks Managing Locks and Processes System administrators can take actions to inform users or terminate processes

Transact-SQL Tools System Stored Procedures Global Variables Transact-SQL Statements DBCC Statements Trace Flags

SQL Profiler Trace and Capture Server Activity Choose events to monitor Choose trace criteria Choose what data to capture Group data meaningfully

Demonstration: Using SQL Profiler

SQL Query Analyzer Show Query Execution Plan Show Server Trace Show Server-Side Statistics Show Client-Side Statistics Index Tuning Wizard

 Common Monitoring and Tuning Tasks Monitoring Memory Use Monitoring Threads and Processor Use Monitoring Hard Disk I/O Monitoring Locks Monitoring for Poorly Performing Queries

Monitoring Memory Use Memory and Paging File Use Object: Counter Guideline Memory: Available Bytes This counter should be greater than 5,000 KB Memory: Pages/sec This counter should never be consistently greater than zero Process: Page Faults/sec A high number indicates excessive paging Memory and Buffer Use Object: Counter Guideline Process: Working Set This counter should be greater than 5,000 KB SQL Server: Buffer Manager: Buffer Cache Hit Ratio This counter should be greater than 90 percent SQL Server: Buffer Manager: Total Pages A low number may indicate frequent disk I/O, more memory may be required SQL Server: Memory Manager: Total Server Memory If this counter is consistently close to the amount of physical memory, more memory may be required

Monitoring Threads and Processor Use Object: Counter GuidelineGuideline Processor: %Processor Time This counter should usually be less than 90 percent System: Context Switches/Sec On a multiprocessor computer, if this counter reaches 8000, and the Processor: % Processor Time counter is over 90 percent, consider enabling SQL Server fiber mode scheduling System: Processor Queue Length This counter should never be consistently greater than 2 Processor: %Privileged Time This counter should be as low as possible Processor: %User Time This counter gives the percentage of time executing user processes such as SQL Server

Monitoring Hard Disk I/O Object: Counter GuidelineGuideline PhysicalDisk: %Disk Time This counter should be consistently less than 90 percent PhysicalDisk: Avg.Disk Queue Length This counter should be no more than 2 times the number of spindles PhysicalDisk: Disk Reads/sec This counter should be consistently less than the capacity of your hard disk subsystem PhysicalDisk: Disk Writes/sec This counter should be consistently less than the capacity of your hard disk subsystem

Monitoring Locks Deadlocks Automatically detected and killed Blocking Locks Administrator intervention required Managing Locks Windows System Monitor, SQL Profiler, SQL Server Enterprise Manager, and stored procedures

Monitoring for Poorly Performing Queries Identifying Query Performance SQL Profiler, traces, and stored procedures Causes of Poor Query Performance Network, memory, statistics, indexes, and query structure

Recommended Practices Establish a Performance Baseline Monitor Actual Performance Identify Performance Bottlenecks Use the Appropriate Tools

Lab A: Monitoring SQL Server

Review Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server Common Monitoring and Tuning Tasks