Windows Servers
Windows Performance Monitor (PerfMon): Practical Guide
By NileVPS Team · Published · 5 min read
اقرأ المقال بالعربيWhen a Windows server "feels slow", Task Manager tells you what is happening right now, but it rarely tells you why or since when. Performance Monitor (perfmon) is the tool built into every Windows Server edition for measuring CPU, memory, disk and network behaviour over time. It costs nothing, needs no agent, and once you know which counters to watch it turns vague complaints into numbers you can act on. This guide walks through the parts of perfmon that matter on a VPS.
Opening Performance Monitor
Press Win + R and run perfmon. The console has three main areas:
- Monitoring Tools > Performance Monitor: a live graph of counters you choose.
- Data Collector Sets: saved collections of counters that record to disk on a schedule.
- Reports: the output of finished collector sets.
Two related shortcuts are worth knowing. perfmon /report runs a 60-second System Diagnostics report and produces a readable summary with warnings. resmon opens Resource Monitor, which is better than perfmon for answering "which process is using the disk right now".
The counters that actually matter
Perfmon exposes thousands of counters. For day-to-day server work, a short list covers most problems:
| Area | Counter | What to look for |
|---|---|---|
| CPU | \Processor(_Total)\% Processor Time | Sustained high values, not short spikes |
| CPU | \System\Processor Queue Length | Threads waiting for CPU; persistently above a few per vCPU suggests CPU pressure |
| Memory | \Memory\Available MBytes | Free memory trending toward zero |
| Memory | \Memory\Pages/sec | Heavy, sustained paging alongside low available memory |
| Disk | \LogicalDisk(*)\Avg. Disk sec/Read and sec/Write | Latency per operation, in seconds |
| Disk | \LogicalDisk(*)\Avg. Disk Queue Length | Requests piling up behind the disk |
| Network | \Network Interface(*)\Bytes Total/sec | Throughput compared with your plan's bandwidth |
| Process | \Process(*)\% Processor Time and Working Set | Which program is responsible |
Treat any threshold as a rule of thumb, not a law. The useful question is always "is this different from normal for this server?", which is why a baseline matters more than any single number.
Adding counters to the live graph
In the Performance Monitor view, click the green plus icon, pick the computer (local by default), expand a counter group, select the instance (for example _Total or C:), and click Add. Press Ctrl + H to highlight the selected line, and change the graph type to Report when you want plain numbers instead of a chart.
Recording a baseline with a Data Collector Set
A live graph disappears when you close it. To capture behaviour over a day or a week, create a Data Collector Set:
- Expand Data Collector Sets > User Defined, right-click, and choose New > Data Collector Set.
- Select Create manually (Advanced), then Performance counter.
- Add the counters from the table above and set the sample interval, for example 15 seconds.
- Choose a folder such as
C:\PerfLogs\Baseline. - Open the set's properties to add a Stop Condition (duration or maximum size) and a Schedule if you want it to start automatically.
Right-click the set and choose Start. When it stops, the results appear under Reports, and the raw data is a .blg file you can open in perfmon later.
Doing the same from the command line
On a server you manage over RDP or PowerShell remoting, the command line is often faster. logman creates and controls collector sets:
logman create counter Baseline -c "\Processor(_Total)\% Processor Time" "\Memory\Available MBytes" "\LogicalDisk(_Total)\Avg. Disk sec/Read" "\LogicalDisk(_Total)\Avg. Disk sec/Write" -si 00:00:15 -f bincirc -max 500 -o C:\PerfLogs\Baseline
logman start Baseline
logman query Baseline
logman stop BaselineThe bincirc format with -max 500 keeps a circular log capped at 500 MB, so a forgotten collector does not fill the disk.
For a quick check, PowerShell's Get-Counter samples counters directly:
Get-Counter '\Processor(_Total)\% Processor Time','\Memory\Available MBytes' -SampleInterval 5 -MaxSamples 12To analyse a log in Excel or another tool, convert it with relog:
relog C:\PerfLogs\Baseline\Baseline_000001.blg -f csv -o C:\PerfLogs\baseline.csvReading the results
Look at the counters together rather than one at a time:
- High CPU and a growing processor queue: the workload needs more vCPUs, or one process is misbehaving. Check
\Process(*)\% Processor Timeto find it. - Low available memory with heavy paging: the server is short of RAM. Disk activity rises as a side effect, so do not blame the disk first.
- High disk latency with a normal memory picture: the application is genuinely I/O bound. Look at which process is reading or writing in Resource Monitor, and review logging, database settings and scheduled jobs.
- Network throughput near your bandwidth: consider caching, compression, or moving heavy downloads elsewhere.
When a problem coincides with errors, compare the timestamps with the system logs. Our guide to Event Viewer logs shows how to filter them by time and source.
A short checklist
- Record a baseline during a normal week, before you need it.
- Keep the counter list short; ten well-chosen counters beat two hundred.
- Use circular logs with a size cap.
- Sample every 15 to 60 seconds for long collections; one second is only for short investigations.
- Re-run the baseline after major changes such as new software or a resized plan.
If the numbers show a server that is consistently out of CPU or memory, resizing is often cheaper than hours of tuning. You can compare plan sizes on the pricing page.
FAQ
Does Performance Monitor slow the server down?
Collecting a few dozen counters every 15 seconds has a negligible footprint on a typical server. Overhead becomes noticeable only with very large counter sets or very short sample intervals, so keep both reasonable.
Can I monitor a remote Windows server with perfmon?
Yes. When adding counters, enter the remote computer name instead of the local one. It requires appropriate permissions (for example membership in Performance Monitor Users) and the Remote Registry and firewall rules that allow remote performance access.
Where are Data Collector Set results stored?
By default under C:\PerfLogs, unless you chose another folder. Each run creates a subfolder with a .blg file that perfmon can open and relog can convert to CSV.