Add SWAP disk on Amazon EC2 Ubuntu servers
Submitted by admin on Fri, 06/21/2013 - 16:08Scenario
My Ubuntu web servers were killing processes due to low free memory. I would prefer them to slow down than to kill processes. So I added SWAP disk space that is not setup by default in the EC2 instances.
Prerequisites
Amazon AWS EC2 Ubuntu 11 or 12 instance.
This may work on other Linux versions, but I have only used it on Ubuntu.