How do I investigate the cause of lengthy timeouts on an EC2 instance.

0

For the past 5 years I have been running 5 Wordpress sites and a mail server on an EC2 t2.medium Centos7 instance with integrated RDS. For the past 5 months I have been having to stop/start the instance every 5-6 days following lengthy timeouts which causes the instance to freeze. The instance has a 90G volume which is 60% utilized. How can I investigate the cause(s) of these timeouts?

已提問 7 個月前檢視次數 183 次
2 個答案
0

What is the CPU utilization and do you have the Cloudwatch agent installed for memory utilization? https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/metrics-collected-by-CloudWatch-agent.html

You could also set an alarm on high memory utilization and if it peaks (or a notification from the WP system/SNS) to have Lambda restart the instance for you. Depending on architecture you can also use a AutoScaling Groups with 1 instance minimum + health check for this same purpose.

profile pictureAWS
專家
David
已回答 7 個月前
0

Following the start of the last timeout event the %CPU utilisation dropped from 11% to 2% in a period of 2minutes. It stayed at around 2% until the instance was stopped/started. Any further assistance would be much appreciated.

已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南