1

I am experiencing sudden freezes in one particular instance.
Here some details of the instance:
Type: t2.micro
Region/av. zone: us-west-2b
OS: amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2 (ami-a0cfeed8)

My this Ec2 instance freezes automatically.
I have docker installed in the instance.
I am new in this field.
don't have an idea from where can I get system or server log that why my ec2 instance continuously freezing, so that I can trace the problem.
Thanks in Advance.

  • 1
    Chances are you're running out of CPU credits, as t2.micro is a "burstable" instance type. docs.aws.amazon.com/AWSEC2/latest/UserGuide/… – ceejayoz Sep 25 '18 at 13:54
  • 1
    Could be EBS credits as well aws.amazon.com/blogs/database/… – Tim Sep 25 '18 at 19:06
  • 1
    How do you know it’s freezing? Being it’s a virtual server, it takes a little more effort to determine if a server is “frozen.” Just wondering how you know? – Appleoddity Sep 26 '18 at 4:22
  • Hi Ashok, if the response below answered your question please upvote and accept it. That's the ServerFault's way to say thank you for the time and effort someone took to help you. Thanks! – MLu Nov 3 '18 at 3:58
  • @Appleoddity I am accessing that using putty and putty console freezed.even when i tried to reconnect again, i am not able to connect so i thought that aws instance was freezed. – Ashok Patel Nov 21 '18 at 11:33
2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.