Use this when choosing performance counters to collect.
Performance Counters
Performance counters are named metrics exposed by Windows and applications, like \Processor(_Total)\% Processor Time. Read them in Performance Monitor or with Get-Counter and typeperf.
1. Get-Counter -ListSet <name>.
2. Key counters per resource.
3. Sample interval appropriate.
4. Export with Export-Counter.
5. Thresholds.
counters exposed by providers → sampled
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Comparing counters across machines with different hardware without baselines.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Counters have objects, instances and names.
- Get-Counter reads them from PowerShell.
- typeperf logs them from cmd.
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
ReferenceWhy it matters1 section · depth on demand
How counters work
A counter path is \Object(Instance)\Counter, for example \PhysicalDisk(0 C:)\Avg. Disk sec/Read. Objects are provided by the OS and applications (SQL Server, IIS add their own). Some counters are instantaneous, others are averages over the sample interval. List available counters with Get-Counter -ListSet *.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Core performance counters and rough thresholds:
| Counter | Concern when |
|---|---|
\Processor(_Total)\% Processor Time | > 80–90 % sustained |
\System\Processor Queue Length | > 2 per core sustained |
\Memory\Available MBytes | < 10 % of RAM |
\Memory\Pages/sec (with hard faults) | Sustained high together with low available |
\Memory\Committed Bytes In Use | > 80–90 % |
\PhysicalDisk(*)\Avg. Disk sec/Read,Write | > 20 ms HDD, > 2–5 ms SSD |
\PhysicalDisk(*)\Current Disk Queue Length | Persistently high with high latency |
\Network Interface(*)\Bytes Total/sec | Near link speed |
Get-Counter '\Processor(_Total)\% Processor Time','\Memory\Available MBytes' -SampleInterval 5 -MaxSamples 12
Key counters
| Counter | Concern |
|---|---|
\Processor(_Total)\% Processor Time | > 85 % sustained |
\System\Processor Queue Length | > 2 per core |
\Memory\Available MBytes | < 5–10 % of RAM |
\PhysicalDisk(*)\Avg. Disk sec/Read | > 20 ms |
\Network Interface(*)\Output Queue Length | > 2 |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Performance Monitoring → Performance Counters. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/administration/performance-tuning/ · confidence 94%