would like to remove or reduce 100% cpu usage from VPC or EC2, pls provide solution towards

0

would like to remove or reduce 100% cpu usage from VPC or EC2, pls provide solution towards

質問済み 3ヶ月前173ビュー
1回答
0

if your EC2 instance is running at 100% CPU then it may be that the running workload is consuming all the available CPU and so you need to uplift the instance type to one with more resources https://aws.amazon.com/ec2/instance-types/

This will be expensive, as instance types get more powerful they cost more. And also, if you are currently on free tier then uplifting to an instance type outside of free tier will mean you start paying for something you previously got for free.

So before you commit to a new instance type, analyse the running workloads to see what's causing this. Standard tools like top on Linux or Task Manager on Windows can help here. Setup CloudWatch agent to collect more detailed system logs https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html - this may show that your root cause is exhaustion of some system resources.

Running low on memory can cause an increase in CPU utilisation (as the OS spends more and more time, and more and more CPU, looking for scraps of memory it can free up), if this is your problem it may be beneficial to add a swap file https://repost.aws/knowledge-center/ec2-memory-swap-file

In short, there are a lot of tools that you can use to analyse the workloads running on your instance, and once you have a better understanding of this you can make an informed decision about the best way to proceed.

profile picture
エキスパート
Steve_M
回答済み 3ヶ月前
profile pictureAWS
エキスパート
レビュー済み 3ヶ月前

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

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

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

関連するコンテンツ