Wondering how to do CPU utilization analysis on EC2 Windows? We can help you!
We can use Task Manager from our instance to see the processes which use the CPU the most. Also we can use Performance Monitor or Process Explorer to find out the exact processes that are causing high CPU utilization.
Here at Bobcares, we do CPU utilization analysis for our customers as a part of our Server Management Services.
Today let’s see how our Support Engineers do this for our customers with EC2 instances.
How to do CPU utilization analysis on EC2 Windows
Following are some of the methods that our Support engineers use to analyze CPU utilization:
Use Task Manager to identify the source of high CPU utilization
- Firstly, we must connect to yo the instance using Remote Desktop Protocol (RDP).
- Then open Task Manager and select the CPU column to sort by CPU.
- Further we have to check for any processes with high CPU utilization.
- And we have to troubleshoot any applications that are using more CPU than expected, if found.
If all applications are using the expected amount of CPU, we can try changing instance types.
Use Process Explorer to identify the source of high CPU utilization
Process Explorer is a SysInternals utility provided by Microsoft.
We can use the following steps to use Process Explorer:
- Firstly, we have to download Process Explorer to our instance.
- Then launch the application as an administrator.
- And select the CPU column to sort processes by usage.
- After that, go to View, and click on Show Process Tree to view the parent-child relationship between processes.
Use Performance Monitor to identify the source of high CPU utilization
We can use Performance Monitor and the Performance Analysis of Logs (PAL) tool for this analysis. Performance Monitor is a built-in Windows tool.
To use Performance Monitor, follow these steps:
- Firstly, we have to connect to our instance using RDP.
- Then open Performance Monitor, and expand Data Collector Sets.
- Next, open the context (right-click) menu for User Defined, and go to New, click on Data Collector Set.
For Name, we have to enter a name for the new data collector set.
Then select Create manually (Advanced).
- After that click on Next.
- And for Create data logs, select Performance Counter, then click Next.
- Click Add.
For Available counters, select Process, % Processor Time.
And for Instances of selected object, select All instances.
After that click Add.
Repeat this step for adding further performance counters.
- Now click Ok.
- (Optional) Set Sample interval and Units to the preferred values.
- And click Next.
- Next we must choose a location with at least 1 GiB of free space to store the data, and click Next.
- Save and close, then click Finish finally.
Use Performance Analysis of Logs (PAL) to generate a report for analysis
PAL is a third-party tool that we can use to generate a report from our Performance Monitor file for a more in-depth analysis. To use PAL, follow these steps:
- Install PAL, launch the PAL Wizard, and then choose Next.
- For Performance Counter Log, enter the path to the Performance Monitor file, and then choose Next.
- For Title, choose System Overview, and then choose Next.
Note: System Overview provides a general operating system performance analysis.
- Review and answer the questions for each entry in the Questions section. For OS, choose the latest Operating System version available from the list with a bit version that matches our instance. Choose Next.
- Select Process all of the counters in the counter log, and then choose Next.
Note: Processing all of the counter instances can be resource intensive.
- For Output Folder, select an output directory for the PAL Report.
- For HTML Report, select HTML Report, and then choose Next.
- Choose Next, and then choose Finish.
- Review the Process and Processor sections of the PAL Report to determine which processes are using the instance’s CPU.
[Need assistance? We can help you]
To conclude, we saw the steps that our Support Techs follow to do CPU utilization analysis on EC2 Windows.