Pcornel
Virtualization · Virtualization Troubleshooting

High Memory Usage

Cheat sheet · https://pcornel.dk/topic.php?topic=3819

Back to the Topic

Answer

Trace memory from guest demand to host backing: guest committed/working set → virtual memory allocation → balloon/reclaim policy → host resident memory/NUMA → swap or pressure → workload latency.

Remember

  • High guest memory use ≠ memory leak; cache and productive working set can legitimately consume available RAM.
  • Allocated VM memory ≠ resident host memory, especially with dynamic memory, ballooning, sharing or sparse backing.
  • Host free memory low ≠ immediate failure; pressure, reclaim, swap and workload latency determine impact.
  • Adding memory ≠ proof of root cause unless paging/reclaim/latency evidence changes with the workload.

First checks

  • free -m; top -o %MEM — guest memory
  • virsh dommemstat <vm> — host view
  • Get-VM <vm> | fl MemoryAssigned,MemoryDemand — Hyper-V

Verify in this order

app → guest memory → host memory

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Virtualization Troubleshooting → High Memory Usage troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → High Memory Usage boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3819

Confirmation

Confirm action

Continue?