1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
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