EC2 Instance Freezes
Couple of options:
Use a larger size, e.g.
t2.small
ort2.medium
- if the freezing goes away it may be memory-related.Examine CPU Credits usage - if it "freezes" when the CPU credits go low you're overloading the instance. Use a larger one.
Examine the OS logs - in
/var/log/*
. There may be some clues about memory or other problems.Once it "freezes" go to EC2 -> Instances -> Actions -> Instance Settings -> Get System Log and see if you get any clues there.
Hope that helps :)
Mine runs out of memory causing the CPU to spike to 100% killing processes along the way (e.g. Apache / MySQL)
Login to console.aws.amazon.com, to view your EC2 logs
- Select the instance
- Choose "Actions > Monitor and Troubleshoot > Get Instance Screenshot"
Hope this helps.