I run a VPS with Ubuntu 18.04 and 1Gb. I had intermittent maximum memory limitations being reached and only clearing after a reboot. I think the frozen CPU was due to calling a series of MySqli commands. Calling PHP flush() after each MySqli operation has coincidentally cleared the frozen system problem.