EC2 Instance and SWAP space
EC2 Instances on Amazon out of the box, does not contain any SWAP space . So if you exhaust memory, machine probably stuck. It’s very good practice, to give them at least slow SWAP memory to save instant crashes.
Process is quite simple. Let’s check how much free space we have: