问题原文
原帖链接 · Ashok Patel · CC BY-SA 4.0
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.
已采纳解答
原帖链接 · MLu · CC BY-SA 4.0
Couple of options:
Use a larger size, e.g.
t2.smallort2.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 :)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
