When the EC2 instance status check is normal, the Linux terminal cannot be connected

0

AWS EC2 instance status check is successful, but the Linux terminal cannot be connected via SSH.And the self-built MySQL database is also down.According to the system log and MySQL error log, there is no abnormality. Similar problems have occurred before, and finally the instance needs to be restarted to solve it.

I want to know what caused it so that I can avoid the same problem from happening again in the future.

Best regards, Thanks!

질문됨 일 년 전283회 조회
2개 답변
0

What instance type are you running? My guess would be the MySQL workload is gradually consuming more and more resources until it's reached a point that there's nothing left, and as a result the host is basically hanging.

Check the Monitoring tab for the instance in AWS Console, is there anything that looks like a cause for concern?

Unfortunately the EC2 section of the AWS Console doesn't display metrics for memory use, you'll need to setup CloudWatch agent to collect these https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html

profile picture
전문가
Steve_M
답변함 일 년 전
0

r5.2xlarge,But no problems were found by checking /var/log/message, such as "OOM",,,

답변함 일 년 전

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

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

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

관련 콘텐츠