The default Ubuntu AMI does not have swap enabled, but it is not suitable for production use as the machine just crash when it is Out Of Memory.
Are there existing images with swap enabled so I can use without create a custom image?
Section Four-step Process to Add Swap File outlines the required steps, which boils down to e.g. (replace
This won't survive a reboot yet, thus requires you to edit
Then add this line at the end of the file:
Please refer to the linked page for more details and an example session, if need be.