Presentation is loading. Please wait.

Presentation is loading. Please wait.

Allen White UpSearch Technology Services SQL Server MVP SESSION CODE: DAT306 Gather SQL Server Performance Data with PowerShell.

Similar presentations


Presentation on theme: "Allen White UpSearch Technology Services SQL Server MVP SESSION CODE: DAT306 Gather SQL Server Performance Data with PowerShell."— Presentation transcript:

1 Allen White UpSearch Technology Services SQL Server MVP SESSION CODE: DAT306 Gather SQL Server Performance Data with PowerShell

2

3 www.SQLServerMVPDeepDives.com

4

5 Gather SQL Server Performance Data with PowerShell

6

7 ObjectCounterLook For Processor% Processor TimeShould be <= 80% MemoryAvailable MBytes Low Memory, Server Paging Paging File(_Total)% UsageShould be < 70% PhysicalDisk(*)Disk Reads/sec Baseline, watch for unusual variations PhysicalDisk(*)Disk Writes/sec Baseline, watch for unusual variations SystemProcessor Queue Length > 10 threads/proc and CPU > 80% is concern Gather SQL Server Performance Data with PowerShell

8 ObjectCounterLook For Access MethodsForwarded Records/sec Should be < 10 per 100 batch requests/sec Access MethodsPage Splits/sec Should be <20 per 100 batch requests/sec Buffer ManagerBuffer cache hit ratioShould be > 90% Buffer ManagerPage life expectancyShould be >=300 General StatisticsProcesses blockedBaseline, check for changes SQL StatisticsBatch Requests/sec> 1000 is busy system SQL StatisticsSQL Compilations/sec Should be < 10% of batch requests/sec SQL StatisticsSQL Re-Compilations/sec Should be < 10% of compilations/sec Gather SQL Server Performance Data with PowerShell

9

10

11

12

13

14 # Initialize Perfcounters $ppt = new-object System.Diagnostics.PerformanceCounter $ppt.CategoryName = 'Processor' $ppt.CounterName = '% Processor Time' $ppt.InstanceName = '_Total'

15 Gather SQL Server Performance Data with PowerShell Connect to Server Find Instances Initialize Server Counters For Each Instance Initialize Instance Counters While Not EndDate Capture Server Counters For Each Instance Capture Instance Counters

16

17 Gather SQL Server Performance Data with PowerShell

18

19

20

21

22 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.

23 www.microsoft.com/teched www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn

24

25 Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31 st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

26

27


Download ppt "Allen White UpSearch Technology Services SQL Server MVP SESSION CODE: DAT306 Gather SQL Server Performance Data with PowerShell."

Similar presentations


Ads by Google