Sometimes there is a problem that the server turns off by itself, while the world is not saved (it looks more like it is being killed). Errors are not displayed in the logs or console, and there are no crash reports either. What could be the reason? I use vds hosting 8gb ram, 150 nvme, 4 cpu core risen 7950x. Ubuntu 22 operating system, I use purpur 1.20.1 and java 17 on the server (without arguments)
My guess is that ubuntu stops the java process due to lack of RAM. That is, the system itself kills the java process, which is why such an error occurs. But yesterday I noticed another joke that with more than 5 people online, the server’s traffic police drops significantly, while the processor remains at 6-12% load, but the RAM is clogged. In general, how can all this be fixed?