Lifting the Blinds: Monitoring Windows Server 2012
Transcript of Lifting the Blinds: Monitoring Windows Server 2012
![Page 1: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/1.jpg)
Read the full guide at: http://www.datadoghq.com/blog/monitoring-windows-server/
Lifting the Blinds: Monitoring Windows Server 2012
![Page 2: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/2.jpg)
• SaaS based infrastructure and app monitoring
• Open Source Agent
• Time series data (metrics and events)
• Processing nearly a trillion data points per day
• Intelligent Alerting and Insightful Dashboards
Datadog Overview
![Page 3: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/3.jpg)
Operating Systems, Cloud Providers (AWS), Containers, Web Servers, Datastores,
Caches, Queues and more...
Monitor Everything
![Page 4: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/4.jpg)
Agenda
- Why should I monitor Windows Server?
- What are some indicators of performance
issues?
- How can I collect performance metrics for
analysis?
![Page 5: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/5.jpg)
![Page 6: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/6.jpg)
What to monitor?
![Page 7: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/7.jpg)
![Page 8: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/8.jpg)
CPU metrics
- PercentProcessorTime
- ContextSwitchesPersec
- ProcessorQueueLength
- DPCsQueuedPersec
- PercentPrivilegedTime
- PercentDPCTime
- PercentInterruptTime
![Page 9: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/9.jpg)
CPU: ContextSwitchesPersecWhat it tracks:
Number of times the processor switched to a new thread
Correlate with:
Memory: PageFaultsPersec
Disk: DiskTransfersPersec
Network: BytesSentPersec/BytesReceivedPersec
Issue resolution:Adding processors, thread partitioning, DPC partitioning,
hardware interrupt partitioning, disable I/O counters
![Page 10: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/10.jpg)
CPU: PercentProcessorTimeWhat it tracks:
Percentage of time spent performing work (not idle)
Correlate with:ProcessorQueueLength
Issue resolution:More processors, bigger instance, optimize offending application,
![Page 11: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/11.jpg)
CPU: ProcessorQueueLengthWhat it tracks:
Size of processor queue
Correlate with:
CPU: PercentProcessorTime, PercentPrivilegedTime, PercentDPCTime, PercentInterruptTime
Issue resolution:Adding processors, thread partitioning, DPC partitioning,
hardware interrupt partitioning, disable I/O counters
![Page 12: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/12.jpg)
CPU:DPCsQueuedPersecWhat it tracks:
Deferred procedure call (DPC) enqueue rate
Correlate with:
CPU: PercentDPCTime
Disk: DiskTransfersPersec
Network: BytesSentPersec/BytesReceivedPersec
Issue resolution:Remove buggy device, rollback driver
![Page 13: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/13.jpg)
CPU: PercentPrivilegedTime/PercentDPCTime
PercentInterruptTimeWhat they track:
Percentage of time CPU spent in privileged mode/deferred procedure
calls/interrupts
Correlate with:ContextSwitchesPersec/PercentPrivilegedTime/PercentDPCTime PercentInterruptTime
Issue resolution:Adding processors, thread partitioning, DPC partitioning,
hardware interrupt partitioning, disable I/O counters
![Page 14: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/14.jpg)
Memory metrics
- PoolNonpagedBytes
- PageFaultsPersec
- PagesInputPersec
![Page 15: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/15.jpg)
Memory: PoolNonpagedBytesWhat it tracks:
Amount of non-paged memory in use
Correlate with:
Windows Event 2019 “Nonpaged Memory Pool Empty”
Issue resolution:Identify troublesome driver/roll back to known good state
![Page 16: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/16.jpg)
What it tracks:
Rate of page faults
Correlate with:
PagesInputPersec
Issue resolution:Increase system memory
Memory: PageFaultsPersec
![Page 17: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/17.jpg)
What it tracks:
Rate pages are read (from disk) into memory
Correlate with:
PageFaultsPersec/ DiskTransfersPersec
Issue resolution:Increase system memory, move page file to separate physical disk
Memory: PagesInputPersec
![Page 18: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/18.jpg)
- AvgDiskQueueLength
- DiskTransfersPersec
- PercentIdleTime
Disk Metrics
![Page 19: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/19.jpg)
Disk: AvgDiskQueueLengthWhat it tracks:
Running average of I/O ops in queue
Correlate with:DiskTransfersPersec
Issue resolution:Move data for I/O-intensive applications to separate disk; add disks to system
![Page 20: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/20.jpg)
Disk: DiskTransfersPersecWhat it tracks:
Aggregate I/O rate
Correlate with:AvgDiskQueueLength
Issue resolution:Move data for I/O-intensive applications to separate disk; add disks to
system; increase disk cache
![Page 21: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/21.jpg)
Disk: PercentIdleTimeWhat it tracks:
Percent of time disk is idle
Correlate with:AvgDiskQueueLength
Issue resolution:Move page file to separate disk; add disks to system; use SSDs
![Page 22: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/22.jpg)
Tooling
![Page 23: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/23.jpg)
Word of Warning
![Page 24: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/24.jpg)
Powershell
- Windows’ scripting language (no more batch files!)
- Powerful language with deep OS support
- Integrates with C# natively
- Output is typed (unlike *NIX)
![Page 25: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/25.jpg)
Powershell
![Page 26: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/26.jpg)
Powershell
![Page 27: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/27.jpg)
Perfmon
![Page 28: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/28.jpg)
Windows Performance Toolkit
Requires Windows
Assessment and
Deployment Kit (formerly
Windows Performance
Toolkit)
https://www.microsoft.com
/en-
US/download/details.aspx
?id=39982
![Page 29: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/29.jpg)
Windows Performance Recorder
![Page 30: Lifting the Blinds: Monitoring Windows Server 2012](https://reader034.fdocuments.in/reader034/viewer/2022050613/58a4e0ff1a28ab34318b6ab3/html5/thumbnails/30.jpg)
Questions?
Evan Mouzakitis
Research Engineer
Twitter: @vagelim
Email: [email protected]
Read the full guide at: http://www.datadoghq.com/blog/monitoring-windows-server/