Few Servers

Keyword SWAP · from our Short

Add swap before your first Coolify build

Our first Coolify build on a 1 GB droplet peaked at 720 MB of RAM plus 669 MB of swap. Idle, Coolify itself used 252 MB across six containers. The builds are what need the memory.

The checklist

  1. Check what you have: free -m. If the Swap line says 0, add it before deploying anything.
  2. Add a 2 GB swap file:
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
  1. Check again: free -m should show about 2 GB of swap. Timed on 10 Oct 2026 on our 1 GB Ubuntu 24.04 droplet (ext4): fallocate 0.01 s for 1 GB, mkswap 0.01 s, swapon instant.
  2. If swapon complains about holes (some filesystems), recreate the file with dd if=/dev/zero of=/swapfile bs=1M count=2048 (1 GB took 4.12 s on ours). Never cp or truncate.
  3. Prefer building somewhere else (a CI build or a pre-built image) if the server will run several apps.

Five days later: how much swap a 1 GB server really uses

On 7 Oct 2026 our 1 GB droplet running Coolify, n8n and Uptime Kuma had 991 MB in swap after 5 days, with no out-of-memory kills. To see which processes are in swap on yours:

for p in /proc/[0-9]*; do awk -v c="$(cat $p/comm)" '/VmSwap/{if($2>10240)print $2, c}' $p/status; done | sort -rn | head

The numbers per container: Can a 1 GB VPS run Coolify, n8n and Uptime Kuma?

The full test

The starter kit adds the swap file (sized for the machine) along with the rest of the first-hour setup. Pay what you want.