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年前3429ビュー
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
エキスパート
レビュー済み 1ヶ月前
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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ