I have restarted it again.
There seems to be a persistent problem causing the server to get stuck in an infinite loop on occasions. It is not a thread deadlock, as there is high CPU usage. The trouble is that it is very difficult to think of any way of reproducing this. If anyone can find a reproduction case for an infinite loop/freeze, please post it in the bug reports forum. Thank you.