Lightsail instance keeps timing out

0

Hi,

I have created a light sail instance which runs some basic Python scripts. However every now and then it just freezes and any SSH connection times out with the message: port 22: Operation timed out. I've also tested the browser-based SSH without any luck,

Restarting/Stopping and Starting helps for a short while until it starts timing out once again in a few days.

I do not run anything fancy, the Metrics show less than %1 CPU usage most of the time. Burst capacity has never been lower than %80.

I genuinely could not find any reason for this and would appreciate any help.

My instance specs are: 2 GB RAM, 2 vCPUs, 60 GB SSD Amazon Linux 2023 London, Zone A (eu-west-2a)

  • What exactly do your Python Scripts do?

ns
已提问 2 个月前201 查看次数
1 回答
0

Hello.

Check the OS system logs when you are able to SSH into your Lightsail instance.
It is possible that the log that caused the connection to fail is being output.
For the Lightsail plan you are using, 20% CPU usage is the baseline throughput, so as you might expect, CPU may not have much to do with it.
Therefore, it may be a good idea to check whether there are any problems with memory usage, etc.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-viewing-instance-burst-capacity.html#baseline-cpu-performance

profile picture
专家
已回答 2 个月前

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

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

回答问题的准则