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!

gefragt vor einem Jahr283 Aufrufe
2 Antworten
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
EXPERTE
Steve_M
beantwortet vor einem Jahr
0

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

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen