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?

asked 6 months ago174 views
2 Answers
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
EXPERT
David
answered 6 months ago
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.

answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions