Memory is percent% in use, above limit%
When memory runs out, Linux kills a process to free it, usually the biggest one, which is often the app.
ps -eo pid,comm,rss --sort=-rss | head -n 6ReferenceThe 22 checks
Health checkmemory
Memory and swap totals in /proc/meminfo.
It reads everything it needs as a normal user.
The report lists it as passed, in these words:
Memory is percent% in use, above limit%
When memory runs out, Linux kills a process to free it, usually the biggest one, which is often the app.
ps -eo pid,comm,rss --sort=-rss | head -n 6This server has total of memory and no swap
On a server under 2 GB with no swap, one spike in memory gets the app killed. Swap gives it room to survive the spike.
sudo fallocate -l 1G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab