EC2 CPU Usage 100%

0

Hi,

This is an urgent request. We have 100% CPU usage on four of our instance for last few days. These are all windows servers. Please help.

Instances:

i-59d21ffb i-1870fba6 i-009ae837c0920fd88 i-0ed43da2caf021106

AK
질문됨 2년 전3421회 조회
3개 답변
2

Auto scaling groups are a great place to start if you need to increase capacity. That said, I would first advise establishing what is causing the high CPU usage. If it is due to high/unexpected application traffic then an auto scaling group is a great idea. However, if you have a rogue process that is utilizing the CPU then an auto scaling group will lead to you creating new EC2 instances and additional costs.

To summarise, the first step needs to be identifying what is causing the high load and plan from there.

profile pictureAWS
jamesuk
답변함 2년 전
  • Capacity is the issue here.

  • If capacity is the issue then I would recommend implementing auto scaling groups as per the first answer to the question. If CPU is 100% even when idle I would recommend looking at the specific tasks that are using the CPU using task manager. Identifying the specific task causing an issue may help move forward.

    Alternatively, what happens if you start a new instance with the same configuration? Does it instantly spike to 100%?

    Failing all of that, I'd need a little bit more information on what exactly the Windows servers are used for (web traffic, background processing etc).

0
수락된 답변

Thank you all for your suggestions and answers. Found the issue. AWS cloud watch is starting a new instance every few minutes. I am certain there is some config issue with aws that is triggering it. Will look in that direction for now.

AK
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
0

Have you looked into Auto Scaling Group?
You can set up ASG to provide additional server capacity when the load is high and then scale back the amount of servers when the load is reduced.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html

Check out this video in Skill Builder: https://explore.skillbuilder.aws/learn/course/external/view/elearning/84/introduction-to-ec2-auto-scaling

답변함 2년 전
  • The cpu usage is 100% even when it is sitting idle. We are not facing max resource call to scale up.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠