Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How to diagnose high cpu utilization on ec2 windows

by | Aug 22, 2021

Wondering how to diagnose high cpu utilization on ec2 windows? We can help you with this!

As a part of our AWS Support Services, we often receive similar requests from our AWS customers.

Today, let’s see the steps followed by our Support Techs to help our customers to diagnose high cpu utilization on ec2 windows.

 

Diagnose high cpu utilization on ec2 windows

 
Before getting into the resolution, Follow the below steps to find the instance.

  1. Log in to the AWS Management Console and open the Amazon EC2 console.

2.Then select Instances.

3. Select the instance and note the instance type from the Description tab.

4. Then choose instance settings and Change T2/T3 Unlimited. This setting is only for T2 or T3 instances.

5. Note whether T2/T3 Unlimited is enabled or disabled.

Now we need to follow the steps in the section below that corresponds to the instance type and the scenario.

We can troubleshoot the particular application after finding the process causing high CPU utilization. We can check the CPU Credit Balance and the CPU within the OS to verify if the CPU is being throttled.
 

T2/T3 Unlimited is disabled on T2 or T3 instances, and not sure about the CPU is being throttled

 

Checking the CPU credit balance

 
By following the steps below to find the CPU credit balance:

  1. Firstly, Log in to the AWS Management console and then open the Amazon EC2 console.

2. Then select Instances.

3. Select the instance.

4. From the Monitoring tab, we can find the current number of remaining credits on the CPU credit balance graph.

If the CPU credit balance is close to zero, then the instance CPU is likely being throttled.

For resolving this issue, we can either enable T2/T3 Unlimited or change the instance type.
 

Checking the CPU utilization on the OS

 

  1. At first, Log in to the AWS Management console and then open the Amazon EC2 console.

2. select Instancesand then choose the instance that we want to troubleshoot.

3. From the Monitoring tab, we can see the CPU utilization.

4. Confirm that the average is close to the baseline performance per vCPU for our instance type.

5. Using RDP, connect to the instance.

6. Finally, open Task Manager and note the CPU utilization on the OS.

Here, in Task Manager, if the CPU utilization is close to 100%, but is close to the baseline in the console, then the instance’s CPU is being throttled. For resolving this issue, we can either enable T2/T3 Unlimited or change the instance type.
 

T2/T3 Unlimited is disabled on T2 or T3 instances, and we know that the CPU is being throttled

 
For resolving CPU throttling, we can either enable T2/T3 Unlimited, or change the instance type.
 

Enabling T2/T3 Unlimited

 

  1. Open the Amazon EC2 console, and then select Instances.

2. Select the instance.

3. Select Instance Settings, Change T2/T3 Unlimited and then select Enable.

Note that this resolution has no downtime, but it may cost more if the instance has to burst often. Also if we still face high CPU utilization after enabling T2/T3 Unlimited, we need to check and troubleshoot the process that is causing the issue.
 

Changing the instance type

 
Before changing the instance type we need to stop the instance.

We can change to any of the following instance types:

  1. A T2 or T3 instance type with a higher CPU credit limit.
  2. An instance type that doesn’t use a CPU credit bucket model.

This resolution solution allows us to select a better instance upon our current needs if the instance has to burst often.

Note: If the case is T2/T3 Unlimited is enabled on T2 or T3 instances or T2 or T3 instance isn’t being throttled, and need help with investigating at the OS level or instance type isn’t T2 or T3 and CPU throttling isn’t the source of the problem, we can investigate at the OS level.

[Need help with more AWS queries? We’d be happy to assist]
 

Conclusion

 
To conclude, today we discussed the steps followed by our Support Engineers to help our customers to diagnose high cpu utilization on ec2 windows.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF