Learn › Windows Server

Windows Server Performance Troubleshooting: CPU, Memory and Disk

Troubleshoot a slow Windows server: which CPU, memory and disk counters to check, what normal looks like, and capturing data with Get-Counter.

Advanced 12 min read
By Gopinath Karthikeyan

“The server is slow” is one of the vaguest tickets you’ll get. The fix is to stop guessing and measure. This guide gives you the counters that matter, the numbers that are normal, and a way to capture evidence so you can prove what’s wrong.

Start with the right question

Slow for whom and since when? A slow report for one user is different from a whole server crawling. Note the time it started – it’s your best clue (a deployment, a backup window, patching, a new scheduled task).

The four resources

Every performance problem is one of: CPU, memory, disk, or network – or the app waiting on something outside the server (database, API, file share).

CPU

Get-Counter '\Processor(_Total)\% Processor Time' -SampleInterval 2 -MaxSamples 5
Get-Counter '\System\Processor Queue Length'
Get-Process | Sort-Object CPU -Descending | Select-Object -First 5 Name, Id, CPU
  • Sustained above 80–90% with a processor queue length consistently above about 2 per core → CPU-bound.
  • High CPU in w3wp.exe → a web app; sqlservr.exe → a database query; MsMpEng.exe → antivirus scanning (check exclusions with your security team).

Memory

Get-Counter '\Memory\Available MBytes', '\Memory\Pages/sec', '\Memory\Committed Bytes'
Get-Process | Sort-Object WS -Descending | Select-Object -First 5 Name, @{n='MB';e={[math]::Round($_.WS/1MB)}}
  • Low Available MBytes (under ~5–10% of RAM) together with high Pages/sec → the server is paging to disk and everything slows down.
  • A process whose memory grows steadily for days → probably a memory leak. Graph it over time before you blame it.

Disk

Get-Counter '\LogicalDisk(*)\Avg. Disk sec/Read', '\LogicalDisk(*)\Avg. Disk sec/Write', '\LogicalDisk(*)\Current Disk Queue Length'
Get-PSDrive -PSProvider FileSystem | Select-Object Name, @{n='FreeGB';e={[math]::Round($_.Free/1GB,1)}}

Latency is the key number:

Avg. Disk sec/Read or Write Meaning
under 0.010 (10 ms) Good
0.010 – 0.020 Acceptable for most apps
above 0.025 consistently Users will feel it – investigate storage

A full disk is also a performance problem: Windows and apps behave badly below about 10% free.

Network

Get-Counter '\Network Interface(*)\Bytes Total/sec'
Test-NetConnection db01.contoso.local -Port 1433

High bandwidth use near the link speed, or slow connections to a dependency, show the problem may not be on this server at all.

Capture evidence over time

Single samples can mislead. Collect a few hours with a Data Collector Set:

$counters = '\Processor(_Total)\% Processor Time','\Memory\Available MBytes',
            '\LogicalDisk(_Total)\Avg. Disk sec/Read','\LogicalDisk(_Total)\Avg. Disk sec/Write',
            '\System\Processor Queue Length'
logman create counter PerfCheck -c $counters -si 00:00:15 -o C:\PerfLogs\PerfCheck -f bincirc -max 200
logman start PerfCheck
# ...reproduce the problem or wait...
logman stop PerfCheck

Open the .blg file in Performance Monitor (perfmon.msc) to see graphs you can put in your incident notes.

A repeatable routine

  1. Note the exact time and who’s affected.
  2. Check CPU, memory, disk latency and free space – 2 minutes with the commands above.
  3. Find the top process for the busy resource.
  4. Check the event logs around the start time.
  5. Ask what changed: deployments, patches, new jobs, data growth.
  6. If it’s intermittent, start a Data Collector Set and come back after the next occurrence.

FAQ

Task Manager shows 100% disk – is the disk broken? Usually not. Look at latency, not “% busy”. A busy disk with low latency is fine; high latency is the problem.

Is adding more RAM or CPU the answer? Only when the counters prove that resource is the bottleneck. Otherwise you pay more and stay slow.

What’s next

Next: Hardening Windows Server – a practical baseline.

Practise this topic

Test yourself with free questions on this topic – instant answers and explanations.

Start practice questions

PerformanceTroubleshootingPerfMonPowerShellWindows Server

Gopinath Karthikeyan

Gopinath Karthikeyan – Windows Site Reliability Engineer with about 12 years in enterprise Windows Server infrastructure, and founder of WinOps Academy. YouTube · LinkedIn

More in Windows Server