EC2 instance kills the long running process, ssh connection closed

0

I'm running a python script which processes large amount of data and takes around 16 hrs to complete. The cpu usage is shown below in the pic. The gap between the two peaks is where, ec2-instance kills the running python script and logs out any ssh connection. The ram memory utilization is also shown below. Any pointers where to look for the problem? ram cpu

Ashwini
已提问 9 个月前449 查看次数
1 回答
2

It is most likely that ssh is timeout, I recommend the following options to launch your scripts in the background

  • You can add your script to cron to be run regularly.
  • You can run your script manually, and detach+background it using nohup.

I hope it can help you, if not, could you add the command you use to run the python script?

profile picture
专家
已回答 9 个月前
profile pictureAWS
专家
kentrad
已审核 9 个月前
  • It kills the python script and multiple running tmux sessions. I don't think it is ssh timeout.

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

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

回答问题的准则

相关内容