Skip to content

Windows Server Performance Monitor (PerfMon) & Telemetry Baselines

Admin
October 4, 2026
8 min read
Intermediate
πŸ’» Target OS: Windows Server 2025 / 2022

Before you begin

  • Applies to:Windows Server performance monitoring with a manually started PerfMon Data Collector Set.
  • Where to start:Open Performance Monitor on the server you want to measure.
  • What you need:Have rights to create and start the collector, a writable log destination, and a clear plan for when to stop it.
Guide tools
Guide tools
0/0 Steps (0%)

Monitoring Windows Server performance requires more than opening Task Manager when users complain of lag. Production environments require continuous, repeatable telemetry capture to detect memory leaks, CPU thread starvation, and storage latency spikes before outages occur.

This guide covers starting a persistent Performance Monitor (PerfMon) Data Collector Set, capturing critical disk and memory counters, and configuring a low-memory alert. The collector runs until you stop it; the example does not configure a scheduled start.


πŸ“Š Windows Server Telemetry Pipeline

A robust telemetry architecture combines three tiers:

  1. System Health Counters: CPU utilization (% Processor Time), Available MBytes, and Queue Length.
  2. Storage Subsystem Metrics: Disk Seconds/Read, Disk Seconds/Write, and Average Disk Queue.
  3. Data Collector Sets: Bounded circular binary logs (.blg) that retain recent measurements for historical analysis.

01

Discover Available Performance Counter Sets via PowerShell

Counter Discovery

Discover installed system counter sets and inspect their specific instances using PowerShell:

Terminal window
# List high-priority performance counter sets:
Get-Counter -ListSet "Processor", "Memory", "PhysicalDisk", "Paging File" |
Select-Object CounterSetName, Description
# Inspect all specific counters under the Memory set:
(Get-Counter -ListSet Memory).Paths

02

Sample CPU, Memory, and Disk Latency Counters

Real-Time Sampling

Execute a targeted sample collection to measure immediate system pressure and disk latency:

Terminal window
# Define critical telemetry counters:
$counters = @(
"\Processor(_Total)\% Processor Time",
"\Memory\Available MBytes",
"\PhysicalDisk(_Total)\Avg. Disk sec/Read",
"\PhysicalDisk(_Total)\Avg. Disk sec/Write",
"\System\Processor Queue Length"
)
# Sample counters 5 times at 2-second intervals:
Get-Counter -Counter $counters -SampleInterval 2 -MaxSamples 5 |
Select-Object -ExpandProperty CounterSamples |
Format-Table Path, CookedValue -AutoSize
Windows Performance Monitor console showing Processor Time, Available MBytes, and Disk sec Transfer real-time line charts

Figure 1: Windows Performance Monitor (perfmon.msc) real-time line graph visualizing \Processor(_Total)% Processor Time, memory capacity, and disk latency.


03

Create a Persistent Circular Performance Log

Log Automation

Create a persistent Data Collector Set that records metrics to a bounded circular binary log (.blg). It continues running after the shell closes and stops only when stopped, the computer shuts down, or a configured limit is reached.

Terminal window
# Create an output directory for performance logs:
New-Item -ItemType Directory -Path "C:\PerfLogs\SystemBaseline" -Force
# Create a circular Data Collector Set recording every 15 seconds, capped at 500 MB:
logman.exe create counter "ServerBaseline" `
-f bincirc `
-si 15 `
-max 500 `
-o "C:\PerfLogs\SystemBaseline\Telemetry.blg" `
-c "\Processor(_Total)\% Processor Time" "\Memory\Available MBytes" "\PhysicalDisk(_Total)\% Disk Time"
# Start the collector set:
logman.exe start "ServerBaseline"
Windows Performance Monitor Data Collector Set properties dialog configuring Binary circular log format and 500 MB limit

Figure 2: Data Collector Set properties dialog configuring Binary (circular) log format, 500 MB maximum threshold, and output path to Telemetry.blg.


04

Configure a Low-Memory Warning Alert

Alerting

Create an alert for available memory below 1024 MB and enable Event Log reporting. This command does not create or run a scheduled task. If you want an action such as a script or notification, create and test a Task Scheduler task separately, then reference its exact task name with -tn.

Terminal window
# Enable Event Log reporting when the threshold is crossed:
logman.exe create alert "LowMemoryAlert" `
-th "\Memory\Available MBytes<1024" `
-el
# Start the alert monitor:
logman.exe start "LowMemoryAlert"
# Verify active status of all Data Collector Sets:
logman.exe query

05

Export Binary Telemetry to CSV or Reports with relog.exe

Reporting

Stop the counter collector first so the binary log is closed, then convert the captured .blg file to CSV. Stop the low-memory alert too when this was only a time-limited test. Start either collector again only if ongoing monitoring is intended.

Terminal window
# Close the active log before reading it:
logman.exe stop "ServerBaseline"
logman.exe stop "LowMemoryAlert"
# Convert the closed binary performance log into CSV:
relog.exe "C:\PerfLogs\SystemBaseline\Telemetry.blg" -f csv -o "C:\PerfLogs\SystemBaseline\Report.csv"
# Confirm exported CSV output:
Get-Item "C:\PerfLogs\SystemBaseline\Report.csv" | Select-Object Name, Length, LastWriteTime
# Optional: resume both only when ongoing monitoring is intended.
logman.exe start "ServerBaseline"
logman.exe start "LowMemoryAlert"

Comments