Hello,
I recently uploaded my Minecraft Forge Server on my Ubuntu VPS. It was working great on my personal computer but for availability purpose we wanted it to be hosted. The mods that are on the server are Twilight Forest, Apotheosis, More Minecarts and Sophisticated Backpacks. The host machine is on Ubuntu 22 and we have 8GB of RAM available, but we're only using 4. I tried with 6 but that doesn't seem to fix the error. The problem is that the server is getting killed by the OOM Killer of the Linux Kernel, I suspect a memory leak but I'm not an expert. The server only crash after 1h or so, the RAM usage keeps building during that time. I've tried to make dumps of the memory but that doesn't help me fixing things up.
Below are several links, one for the Spark profiler, one for the Server Logs and one for the Memory Dump.
Spark Profile : https://spark.lucko.me/qUC5wKDWGM
Heap Dump : https://spark.lucko.me/uQhC5Ywrsk
Logs : https://mclo.gs/RlY7jkr
This imgur link shows you the result of the memory analyser of Eclipse
https://imgur.com/a/6koLES2