Steps to add swap memory to your server
When your server is running low on memory you should consider to upgrade it. However, you can also dedicate some disk space as swap memory. When it’s used your applications will run slower, but at least they won’t crash (unless you also exhaust the swap memory, of course).
- Enable or disable swap altogether
- Change the amount of swap for the server