EC2 Stops Working

0

When i make an remote SSH connection using the visual studio extension, in less than an hour i get disconnected from the ec2 via ssh and i can´t acces to the websites configured in the ec2 instance neither. I have to reboot the instance each time i get this behavior and wait for a few minutes. I want to know what can i do to analize mi ec2 and solve this problem.

  • Can you Review the system logs on your EC2 instance to see if there are any error messages or warnings that could indicate the cause of the disconnections. Common logs to check include /var/log/messages, /var/log/syslog, and /var/log/auth.log

Carlos
已提问 1 个月前102 查看次数
1 回答
0

Hello.

I found the following in a GitHub issue.
It is possible that EC2 memory usage is increasing due to RemoteSSH.
https://github.com/microsoft/vscode/issues/203425

SSH into EC2 from a terminal etc. and check the system logs for the time period when you were unable to connect to EC2 and check if there are any errors.
If the cause is insufficient memory, I think it would be a good idea to increase the EC2 instance size or create a swap space.
https://repost.aws/knowledge-center/ec2-memory-swap-file

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容