Couple of options:

  1. Use a larger size, e.g. t2.small or t2.medium - if the freezing goes away it may be memory-related.

  2. Examine CPU Credits usage - if it "freezes" when the CPU credits go low you're overloading the instance. Use a larger one.

  3. Examine the OS logs - in /var/log/*. There may be some clues about memory or other problems.

  4. 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

  1. Select the instance
  2. Choose "Actions > Monitor and Troubleshoot > Get Instance Screenshot"

Hope this helps.