If your Windows VPS feels sluggish, it might be running out of Random Access Memory (RAM). When RAM is full, Windows starts writing data to the hard drive (Pagefile), which significantly slows down performance.
Here are the three best ways to diagnose memory issues.
1. The Quickest Way: Task Manager
For a fast overview of which applications are hogging memory.
- Right-click the taskbar and select Task Manager.
- Click on the Performance tab.
- Select Memory from the left sidebar.
Here you can see the total consumption graph. If the "In use" value is constantly near the maximum (e.g. 3.8 GB of 4 GB), you need an upgrade.
2. The Detailed Way: Resource Monitor
This tool shows you deeper insights, such as which processes are actively struggling.
- Press Win + R and type
resmon. - Go to the Memory tab.
Check the graph "Hard Faults/sec".
A hard fault means Windows tried to read something from RAM, but it wasn't there and had to be fetched from the disk (Pagefile).
If this graph shows frequent spikes (green line), your server is starving for RAM.
3. The Professional Way: PowerShell
For a precise, text-based report (useful for scripting or remote management).
Get-WmiObject Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, FreePhysicalMemory
To calculate the percentage used:
$mem = Get-WmiObject Win32_OperatingSystem
$total = $mem.TotalVisibleMemorySize
$free = $mem.FreePhysicalMemory
$used = $total - $free
$percent = ($used / $total) * 100
Write-Host "Used Memory: $("{0:N2}" -f $percent)%"
4. Historical Analysis: Performance Monitor
If you need to track usage over time (e.g., to catch a memory leak that happens at night), use PerfMon.
- Press Win + R and type
perfmon. - Click the green + icon.
- Select Memory > Committed Bytes.
- Click Add.
This will plot a line graph of your memory usage over time.