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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠