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 :)