I'm using a Pi to command an home-made robot. For that I run several python scripts (and one programme in C++), they consume many CPU. I want to let the robot working for several days in a row. But after few hours it seems the Pi closes all the terminal.
At first I thought the Pi rebooted during the night. But once it did it during the day, and I could check that my SSH connection was not closed.
Is there a kind of protection in the Pi that closes all the process if I requiring to much CPU? And is there a way to check what happened, like a log file? I already check last -x
for any savage reboot.
If you need any further information, please let me know. I don't know what could be useful. Thanks in advance.
NB: the C++ program takes itself 100% of one CPU.
UPDATE with info from comment:
I'm using RPi 4 with 8 GB of RAM. I'm using an homemade power delivery that supplies 5 V - 3 A. I never got problems with it, the Pi doesn't shutdown and never display the lightning. Moreover in last -x I couldn't find any power shutdown.