How much RAM does your VPS need?
27 Nov 2026 ram sizing
Estimate memory from what you actually run.
Memory is often the first limit a small server reaches. Estimate it from your processes rather than visitor numbers alone.
Add up the parts
- The operating system and basic services
- Each application worker (PHP-FPM, Python or Node processes)
- The database and its buffers
- Caches such as Redis
- Build steps, which can briefly need much more than the running application
Leave headroom. The RAM calculator gives a rough starting figure; its numbers are planning assumptions, not benchmarks.
Measure on the real server
free -h
ps -eo rss,comm --sort=-rss | head
For PHP-FPM, find the average worker size and set pm.max_children so that workers cannot exceed the memory you can give them:
ps -C php-fpm8.3 -o rss= | awk '{s+=$1; n++} END {if (n) printf "%.0f MB average\n", s/n/1024}'
Signs you need more
- Processes killed by the out-of-memory killer
- Constant swap activity
availablememory near zero under normal load
Tune first, then upgrade. Upgrading restarts the server, and disks cannot be reduced later, so move up one step at a time.