Without log and other information we have no idea.
I can make a guess though: whatever you use to host it either shut it down because it thinks it is going to crash from a memory leak(not likely but such functionality could be pretty sweet)
Or it just is configured to shutdown every so often and reboot to clean up memory(depending on what you use this is very,very likely)