Server Side Memory Leak

For some reason. DH 2.3 from the latest Nightly Build is memory leaking server side. Confirmed no issues once I remove the mod. Seems to be with the Overworld specifically... Even while I was pregening the Overworld, the memory would consistently leak, max out, then crash the sever and restart. Had to restart the process multiple times after each crash to finish the pregen. But... after the generation was completed... Once players started connecting, the memory leaked again... It's important to note that I have a custom launcher sent out to each player that has a predownloaded DistantHorizons.sqlite file in their clients so they dont need to download all the info from the server for the first 256 radius in the Overworld. But is DH still trying to check everything anyway causing the leak? Its also important to note that the Nether did not have the problem... It pregenerated totally fine from start to finish with no abnormal memory usage at all. Seems to be an overworld only issue.
No description
8 Replies
Kairo
KairoOP2mo ago
So far I just tried removing the .sqlites from the overworld serverside. It looks like its trying to regenerate everything again, but the memory leak hasn't happened yet. I think its because I only have 2 people on the server atm.
majo24
majo242mo ago
From when is the nightly build you're using? Around 5 days ago, there was a memory leak fixed, so try redownloading the nightly build, if you're using an earlier build
Kairo
KairoOP2mo ago
Im on the latest one from 2 days ago I still need help on this if anyone has ideas. Its soo abnormal. I had 7 players online all day with no issues. Then a specific player logged on who hasnt played for a while. DH started to Sync their clients LOD data, and RAM usage went from 9/32 to 32/32 gigs, maxxed out and crashed the server. Do I need more RAM here or is it leaking and crashing. Can I limit the RAM DH can use?
пшш
пшш2mo ago
Not sure but try lowering rate limit for "sync on load"
Kairo
KairoOP2mo ago
ill give it a shot should i reduce it by half?
пшш
пшш2mo ago
yeah i think so
Kairo
KairoOP2mo ago
For more information, Im running this in a debian docker container with Java 17 + 32 gigs of ram + 12 threads ofa 5900X Just in case that raises and flags I also pregened more overworld and nether today. Overworld ram usage got to 30/32 gigs memory. After pregen finished and cpu usage normalized, the RAM never got released. I had to restart the server. Nether ram usage never moved past 10/32. Which is what it normally is when its not doign a pregen anyway. So weird. I wish there was a way I could debug this... Server still crashed even with the reduced sync on load variable I wonder if its possibly conflicting with another mod that makes it refuse to release memory for certain tasks... Anyone know of a way to tell?
Puhpine
Puhpine2mo ago
Try with just DH, see if it still happens

Did you find this page helpful?