Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.

Slides:



Advertisements
Similar presentations
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 10 Performance Tuning.
Advertisements

6. Monitoring SQL Server Performance
Hands-On Microsoft Windows Server 2003 Administration Chapter 10 Monitoring and Troubleshooting Windows Server 2003.
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.
Gather SQL Server Performance Data with PowerShell
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.
The Essentials: DMV’s and T-SQL for the DBA Rocky Mountain Tech Tri-Fecta.
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.
Maintaining and Updating Windows Server 2008
Anil Desai Austin CodeCamp  Anil Desai ◦ Independent consultant (Austin, TX) ◦ Author of several SQL Server books ◦ Instructor, “Implementing and.
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.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
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.
Chapter 17: Watching Your System BAI617. Chapter Topics Working With Event Viewer Performance Monitor Resource Monitor.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
MCTS Guide to Microsoft Windows Vista Chapter 11 Performance Tuning.
MCTS Guide to Microsoft Windows 7
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCT, MCTS, MCDST, MCP, A+
© Wiley Inc All Rights Reserved. MCSE: Windows Server 2003 Active Directory Planning, Implementation, and Maintenance Study Guide, Second Edition.
Module 7: Fundamentals of Administering Windows Server 2008.
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.
Understanding Perfmon The Performance Testing Tool >>>>>>>>>>>>>>>>>>>>>>
Agenda for Today Do Chapter 14 Final Project Review for Final.
Performance Dash A free tool from Microsoft that provides some quick real time information about the status of your SQL Servers.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Monitoring Windows Server 2012
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
© 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.
A Brief Documentation.  Provides basic information about connection, server, and client.
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.
Chapter 10 System Monitoring Issues Performance Benchmarks NT Server Services Users and Server Access Information Task Manager for Applications Ram and.
Using Event Viewer Event Levels Creating Custom Views Windows Logs Monitoring Performance.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
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.
Monitoring and Managing Server Performance. Server Monitoring To become familiar with the server’s performance – typical behavior Prevent problems before.
Windows Server 2003 系統效能監視 林寶森
MISSION CRITICAL COMPUTING Siebel Database Considerations.
1 Chapter Overview Developing a Performance Monitoring Methodology Choosing Among Monitoring Tools Performing Monitoring Tasks.
Learningcomputer.com SQL Server 2008 – Management Studio.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
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.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
SQL Database Management
AX Performance Tools Present and Future
Monitoring Windows Server 2012
Troubleshooting Tools
Troubleshooting SQL Server high CPU usage
Query Performance Tuning: Start to Finish
Hands-On Microsoft Windows Server 2008
MCTS Guide to Microsoft Windows 7
SQL Server Monitoring Overview
MONITORING MICROSOFT WINDOWS SERVER 2003
Where to Start, What You Need
Presentation transcript:

Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools

Reasons to Monitor Troubleshoot problems, failed maintenance jobs and isolate bottlenecks Improve SQL Server performance and response time of your queries and reports Establish baseline performance for load testing Proactively look for problem areas if you are the DBA or responsible for the server

Monitoring Tools in SQL Server Windows Task Manager Event Viewer Performance Monitor SQL Server Canned reports (server or database) Activity Monitor (SQL Server and Job) Logs (SQL Server and SQL Server Agent) TSQL And DMV (Dynamic Management Views) SQL Server Profiler (Favorite)

Windows Tools Task Manager Quickest way to find information on CPU and Memory Performance tab gives a good visual of resources Processes and Application tabs highlight all the running programs Event Viewer Can be found under Administrative Tools (Control Panel) Application tab gives you information on SQL Server Errors Security tab has information on Failure Audits Demo

Performance Monitor Performance Monitor lets you get graphical information on system counters You can get real time data or from log files In Vista, Resource Overview gives you real time data on CPU, Disk, Network Charts can be Line, Histogram or Report You can add multiple physical counters to gather tons of information, some of these are specific to SQL Server We will take a look at handful of important counters next

Performance Counters – Continued CPU Processor:% Processor Time – Percent of CPU being utilized < 50% MEMORY Available MBytes - Memory available to new processes, More is better Pages/sec - Tells you how many times Virtual memory is being accessed DISK % Disk Time – Similar to Processor Time > 90% is bad Avg.Disk Queue Length – Shows # of I/O operations waiting >2 is bad SQL Server SQLServer:Access Methods - Full Scans / sec >1 or 2 is bad SQL Server:Buffer Manager - Buffer cache hit ratio (Using cache) > 90 SQL Server:Locks - Average Wait Time, should be low

Canned Report Server Level Server Dashboard Activity - All Sessions Performance – Top queries by average CPU Database Level Disk usage by Top tables All Transactions Demo

Activity Monitor Where is it???? Took me a little bit to find this one RMB on Server, select Activity Monitor New look is broken down by Resource Area + Filtering Overview section: Graphs and Charts on system resources Processes Section: Information on SPIDs. If you right click, you can kill the process or launch Profiler directly Resource Waits: Wait info on CPU, I/O, Memory Data File I/O Recent Expensive Queries – favorite section

Error Logs(SQL Server and SS Agent) General information on SQL Server activity Both logs share the same GUI You can filter by user, computer, date, source and message One current and a number of Archive Logs Archived every time the service is restarted File Location for logs is C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\ Demo

TSQL And DMV’s TSQL Sp_who2 and Sp_lock DBCC_INPUTBUFFER DMV DMV’s are dynamic management views return server state that can be used to monitor the health of a server instance select * from sys.dm_os_sys_info has system level info select * from sys.dm_os_performance_counters will let you get information on the performance counters More information can be found at Demo

Profiler SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine You can capture and save data about each event to a file or table to analyze later You can add Events class which is a type of event that can be traced e.g. Showplan XML You can add a data column which is an attribute of an event classes captured in the trace e.g. Duration in milliseconds Save the trace to a file or table You can use Out of the box templates or customize them

Profiler – Continued Demo Scenario I have created a user template called Kash_template that I will use for the demo We are looking for slow queries (duration > 100) in AdventureWorks2008 database I have setup two sessions to mimic activity: One inserts data into SALES.CUSTOMER_ALL table and then updates it using a loop The other one just browses data from SALES.CUSTOMER_ALL table using a loop Both use the WAITFOR delay option