Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Performance Management with SCOM 2007 16 th April 2010 Bob Duffy Database Architect Prodata SQL Centre of Excellence.

Similar presentations


Presentation on theme: "SQL Performance Management with SCOM 2007 16 th April 2010 Bob Duffy Database Architect Prodata SQL Centre of Excellence."— Presentation transcript:

1 SQL Performance Management with SCOM th April 2010 Bob Duffy Database Architect Prodata SQL Centre of Excellence

2 Speaker Profile – Bob Duffy SQL Server MVPSQL Server MVP MCA/MCM for SQL ServerMCA/MCM for SQL Server 18 years in database sector, 250+ projects18 years in database sector, 250+ projects Senior SQL Consultant with Microsoft Senior SQL Consultant with Microsoft Regular speaker for TechNet, MSDN, Users Groups, Irish and UK Technology ConferencesRegular speaker for TechNet, MSDN, Users Groups, Irish and UK Technology Conferences On MCM 2008 exam working groupOn MCM 2008 exam working group Database Architect at Prodata SQL Centre Excellence, DublinDatabase Architect at Prodata SQL Centre Excellence, Dublin SQL Geek ;-)SQL Geek ;-)

3 Agenda What does SCOM do for SQL What does SCOM do for SQL SQL Performance Counters SQL Performance Counters Analysing performance in Ops Console Analysing performance in Ops Console Adding Performance Rules Adding Performance Rules Querying/Analysing Performance Data Querying/Analysing Performance Data Adding Custom Reports Adding Custom Reports Performance Monitors and Alerts Performance Monitors and Alerts Questions Questions

4 What Does SCOM do for SQL Health Monitoring & Alerting Availability Configuration Security Performance Historical Reporting/ Analysis Service Level Tracking

5 SCOM Architecture Nobody knows how to monitor Microsoft technology better than Microsoft, and Operations Manager provides us with that needed expertise in a form thats ready to use.Nobody knows how to monitor Microsoft technology better than Microsoft, and Operations Manager provides us with that needed expertise in a form thats ready to use. – Matthew ONeill, Group Head of Distributed Systems, HSBC Global IT Operations – Matthew ONeill, Group Head of Distributed Systems, HSBC Global IT Operations

6 Out of the Box Perf Reports

7 Console based Views, and Dashboards (Out of the box stuff)

8 Performance Counters Seven Common Groups of Performance Counters CPUMemoryStorage Buffer Pool SQL Workload Database Counters Locking This is not a complete list, just a good list for a baseline and general performance monitoring/tuning (see references for more links)

9 1. CPU Counters ObjectCounterSCOM? Processor% Processor TimeWindows MP % Privileged TimeWindows MP Process\sqlserver.exe% Processor Time % Interrupt TimeWindows MP Processor Queue LengthWindows MP % DPC TimeWindows MP SystemContext Switches/SecWindows MP

10 2. Memory Counters ObjectCounterSCOM? MemoryPages per SecondWindows MP Page Reads/SecWindows MP Page Writes /SecWindows MP Pool Non Paged BytesWindows MP Pool Paged BytesWindows MP Available MbytesWindows MP Paging File% UsageWindows MP SQLServer:Buffer ManagerPage Life Expectancy Pages Reads/Sec Pages Writes/Sec Memory Grants Outstanding Buffer Cache Hit RatioSQL MP SQLServer:Memory ManagerTarget Server Memory (KB) Total Server Memory (KB) Connection memory (KB) Lock memory (KB) SQL Cache Memory (KB)

11 3. Storage Counters ObjectCounterSCOM? Logical DiskAvg. Disk Sec/Read Avg. Disk Sec/Write Avg. Disk Sec/Transfer Windows MP Disk Reads/Sec Disk Writes/Sec Windows MP Disk Transfers/Sec Current Disk Queue LengthWindows MP

12 5. Buffer Pool ObjectCounterSCOM? SQLServer:Buffer ManagerTotal Pages Target Pages Database Pages Pages Reads/Sec Pages Writes/Sec SQServer:Plan CacheCache Pages Cache Hit Ratio

13 6. SQL Workload ObjectCounterSCOM? SQLServer:General Statistics User ConnectionsSQL MP SQLServer:SQL StatisticsBatch Requests/sec Transactions/Sec SQL Compilations/sec SQL Re-Compilations/sec SQL MP SQLServer:Access MethodsFull Scans/sec Index Searches/sec Range Scans/sec Page Splits/sec SQL Server: User SettableQuery Tip: Use sp_user_counter1 to set a custom counter

14 7. Database Counters ObjectCounterSCOM? SQLServer:DatabasesTransactions/SecSQL MP Log Growths Data File(s) Size (KB)SQL MP Log File(s) Size (KB)SQL MP Log Bytes Flushed/Sec Write Transactions/Sec

15 8. Locking ObjectCounterSCOM? SQLServer:LocksNumber of Deadlocks/SecSQL MP Lock Timeouts per secSQL MP Lock Waits/Sec Average Wait Time Lock Requests/SecSQL MP SQLServer:LatchesAverage Latch Wait Time

16 Adding Performance Rules to SCOM for SQL Server

17 The Operations Manager DW Model Real time (ish) Data Warehouse Three Aggregates RawHourlyDaily Views used to abstract tables and prevent locking and support partitioning

18 Core Performance Objects

19 Other Nice Fact Tables

20 Querying and Analysing Performance Data

21 SCOM Reporting Options SSRS Custom Reports Service Level Dashboard 2.0

22 Custom Reporting with Report Builder

23 Automating Performance Monitoring What do these counters actually mean ? See Jimmy Mays Blog et al (in references) SCOM has flexible Monitor rules for perf counters Static for basic thresholds like P.L.E, %Processor Time Self Tuning for baseline counters like User Connections Tip: P.A.L. is fantastic for understanding counters and thresholds. Find it on codeplex…

24 Adding Monitoring Rules to SCOM

25 Scorecards and Dashboards PerformancePoint builds scorecards Really needs a cube to be built Solution Accelerator available Needs SharePoint 2007+

26 Scorecards and Dashboards Availability Metrics Performance Counters Monitor State Detail Hourly Data Daily Trends

27 Scorecards and Dashboards

28 Tracking Service Levels SCOM 2007 R2 Includes Service Level Tracking Can Track Entire Health Model Includes Web parts for MOSS Roll your own route in Performance Point Generally requires a cube to be built Some Accelerators available (see appendix)

29 Tracking Service Levels

30 Wrap Up on SCOM Good Availability Monitoring Tool Good Alert/Event Tool There are better pure performance tools With some work can do performance monitoring Not really a diagnostic tool: DMV, Wait Stat and trace files not covered Can scale to entire organization though… Can be a vehicle for Service Level Tracking

31 Questions ?

32 References/Blogs Microsoft SQL Server Management Pack for Operations Manager C653-4C15-9E51- 6A6CADFCA363&displaylang=en&displaylang=en#filelist C653-4C15-9E51- 6A6CADFCA363&displaylang=en&displaylang=en#filelist Useful Ops Manager 2007 SQL Queries manager-2007-sql-queries.aspx manager-2007-sql-queries.aspx Operations Manager 2007 Reporting Guide manager-report-authoring-guide.aspx manager-report-authoring-guide.aspx SCOM Scorecards and Dashboards Sample Application/Accelerator px px SCOM 2007 Service Level Dashboard Solution Accelerator SQL Perfmon Object Counters and Thresholds counters-thresholds-utilities-for-sql-server.aspx counters-thresholds-utilities-for-sql-server.aspx

33 Thank You!


Download ppt "SQL Performance Management with SCOM 2007 16 th April 2010 Bob Duffy Database Architect Prodata SQL Centre of Excellence."

Similar presentations


Ads by Google