Performance Monitoring
Cheat sheet · https://pcornel.dk/topic.php?topic=3136
Answer
Windows performance monitoring uses Task Manager, Resource Monitor and Performance Monitor counters for CPU, memory, disk and network, with data collector sets for longer recordings to find bottlenecks.
Remember
- Find the saturated resource first, then the process using it.
- Averages over minutes hide the short spikes users feel.
- Disk latency in ms says more than disk busy %.
First checks
Get-Counter '\Processor(_Total)\% Processor Time' -SampleInterval 2 -MaxSamples 5— CPUGet-Counter '\Memory\Available MBytes','\Memory\Pages/sec'— memoryGet-Counter '\PhysicalDisk(*)\Avg. Disk sec/Transfer','\PhysicalDisk(*)\Current Disk Queue Length'— disk latency/queueGet-Counter '\Network Interface(*)\Bytes Total/sec'— networkresmon— Resource Monitor
Commands
Get-Counter- Read Windows performance counters.
Verify in this order
workload → counters per resource → bottleneck → process
Where it usually breaks
First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3136