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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠