How do I diagnose high CPU utilization on an EC2 Windows instance?

Last updated: 2019-05-17

My Amazon Elastic Compute Cloud (Amazon EC2) Windows instance is experiencing high CPU utilization, and I want to understand why. 

Resolution

First, determine your EC2 instance type to identify the correct resolution:

  1. Open the Amazon EC2 console, and then choose Instances from the navigation pane.
  2. Select the instance that you want to troubleshoot. On the Description tab, note the Instance type.
  3. (T2 or T3 instances only) For Actions, choose Instance Settings, Change T2/T3 Unlimited. Note whether T2/T3 Unlimited is enabled or disabled.
  4. Follow the instructions in the section below that corresponds to your instance type and use case.

After you determine the specific process causing high CPU utilization, you can troubleshoot that application.

T2/T3 Unlimited is disabled on my T2 or T3 instance, and I'm not sure if my CPU is being throttled

You can check the CPU Credit Balance and the CPU within the operating system (OS) to verify if your CPU is being throttled. For instructions, see How can I find out if the CPU on my T2 or T3 EC2 Windows instance is being throttled?

T2/T3 Unlimited is disabled on my T2 or T3 instance, and I know that my CPU is being throttled

If your CPU is being throttled, you can either enable T2/T3 Unlimited, or change the instance type. For more information, see How can I resolve high CPU utilization on my T2 or T3 EC2 Windows instance if my CPU is being throttled?

T2/T3 Unlimited is enabled on my T2 or T3 instance
or
My T2 or T3 instance isn't being throttled, and I need help with investigating at the OS level
or
My instance type isn't T2 or T3

When CPU throttling isn't the source of the problem, you can investigate at the OS level. For instructions, see How do I diagnose high CPU utilization on my EC2 Windows instance when my CPU is not being throttled?


Did this article help you?

Anything we could improve?


Need more help?