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?
Thanks.
|
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? Thanks. |
|||
|
|
|
You do not need to create a custom AMI in order to gain swap storage on an Amazon EC2 instance. Rather you can simply add a swap file as outlined in How do I add more swap?:
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. |
|||
|
|