By using AWS re:Post, you agree to the Terms of Use

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

asked 8 months ago440 views
3 Answers
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.

answered 8 months ago
  • 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
Accepted Answer

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.

answered 8 months ago
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

answered 8 months ago
  • The cpu usage is 100% even when it is sitting idle. We are not facing max resource call to scale up.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions