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:

AreaCounterWhat to look for
CPU\Processor(_Total)\% Processor TimeSustained high values, not short spikes
CPU\System\Processor Queue LengthThreads waiting for CPU; persistently above a few per vCPU suggests CPU pressure
Memory\Memory\Available MBytesFree memory trending toward zero
Memory\Memory\Pages/secHeavy, sustained paging alongside low available memory
Disk\LogicalDisk(*)\Avg. Disk sec/Read and sec/WriteLatency per operation, in seconds
Disk\LogicalDisk(*)\Avg. Disk Queue LengthRequests piling up behind the disk
Network\Network Interface(*)\Bytes Total/secThroughput compared with your plan's bandwidth
Process\Process(*)\% Processor Time and Working SetWhich 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:

  1. Expand Data Collector Sets > User Defined, right-click, and choose New > Data Collector Set.
  2. Select Create manually (Advanced), then Performance counter.
  3. Add the counters from the table above and set the sample interval, for example 15 seconds.
  4. Choose a folder such as C:\PerfLogs\Baseline.
  5. 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 Baseline

The 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 12

To 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.csv

Reading 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 Time to 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.

Related guides