possible memory leak DH 2.3

turning down the settings with DH only doesn't clear RAM usage back to normal with DH settings max - 13GB to 16GB used out of 32GB with DH settings lowest (before max) - 1GB - 4GB used out of 32GB with DH settting lowest (after max) - 14GB to 17GB used out of 32GB setting the DH settings back to lowest without distant geneation on (all values had it off) should result in RAM going back to 1GB - 4GB used
24 Replies
Miki_P98
Miki_P98ā€¢3w ago
It can takecouple minutes for the threads to die and memory to be released
MysticPasta1
MysticPasta1OPā€¢3w ago
specs are intel i7 13th gen linux debian 12 - pika distro RTX 3050 40GB memory (8 welded) laptop I will give an update in a couple of minutes
MysticPasta1
MysticPasta1OPā€¢3w ago
[01Dec2024 16:07:17.203] [Server thread/WARN] [DistantHorizons-com.seibel.distanthorizons.core.generation.WorldGenerationQueue/]: World generator thread pool shutdown didn't complete after [3] seconds. Some world generator requests may still be running. [01Dec2024 16:07:17.203] [Server thread/INFO] [DistantHorizons-com.seibel.distanthorizons.core.generation.BatchGenerator/]: BatchGenerator shutting down... [01Dec2024 16:07:17.203] [Server thread/INFO] [LodWorldGen/]: BatchGenerationEnvironment shutting down... [01Dec2024 16:07:17.203] [Server thread/INFO] [LodWorldGen/]: Canceling in progress generation event futures... [01Dec2024 16:07:17.203] [Server thread/INFO] [LodWorldGen/]: BatchGenerationEnvironment shutdown complete. [01Dec2024 16:07:17.203] [Server thread/INFO] [DistantHorizons-com.seibel.distanthorizons.core.generation.WorldGenerationQueue/]: Finished closing WorldGenerationQueue [01Dec2024 16:07:17.204] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2962ms or 59 ticks behind yeah lowest settings is still using 14GB - 18GB of RAM this is after 5 mins waiting @Miki_P98 it should have gone back to normal by now turning off rendering also doesn't fix it it does reset the RAM going out and then back into the world so something is not clearing properly
Miki_P98
Miki_P98ā€¢3w ago
huh I gues wait for a dev to see this
Puhpine
Puhpineā€¢3w ago
do you have wilder wilds installed?
MysticPasta1
MysticPasta1OPā€¢3w ago
no this was with DH by itself @Puhpine
Puhpine
Puhpineā€¢3w ago
no other mods? odd
MysticPasta1
MysticPasta1OPā€¢3w ago
nope no other ones, ik right
Puhpine
Puhpineā€¢3w ago
my guess would be that its related to all the errors its spitting out. but thats no more than a guess
MysticPasta1
MysticPasta1OPā€¢3w ago
yeah @BackSun can you look at this
Puhpine
Puhpineā€¢3w ago
you dont have to ping a dev for this
MysticPasta1
MysticPasta1OPā€¢3w ago
I thought I'd let him know
BackSun
BackSunā€¢3w ago
Are you on Windows or Linux Nvm
linux debian 12 - pika distro
MysticPasta1
MysticPasta1OPā€¢3w ago
Linux Debian 12 - Pika OS distro, KDE
BackSun
BackSunā€¢3w ago
I've seen a few reports where Linux has memory leaks that aren't reproduceable on Windows. In that case there's nothing I can do. That being said, you aren't experiencing a memory leak. A memory leak will crash your computer. You're just experiencing Java keeping more memory in use then it needs to. This is expeceted behavior, especially if you disabled explicit garbage collection.
MysticPasta1
MysticPasta1OPā€¢3w ago
how do I reenable explicit garbage collection
Miki_P98
Miki_P98ā€¢3w ago
You enable it, by not disabling it in GC/JVM flags
BackSun
BackSunā€¢3w ago
Just use the default MC JVM arguments. If you haven't added any JVM args then I revert back to saying there's something goofy with your JRE.
MysticPasta1
MysticPasta1OPā€¢3w ago
ah thanks -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M I was using this
Miki_P98
Miki_P98ā€¢3w ago
It should be good
MysticPasta1
MysticPasta1OPā€¢3w ago
hmm weird because that was all I was using for this issue so why is garbage collection broken
Miki_P98
Miki_P98ā€¢3w ago
https://discord.com/channels/881614130614767666/1304910897658986570/1305234534492803165 Here are some sets of flags that I have on hand You can check if they fix things, but I doubt it
MysticPasta1
MysticPasta1OPā€¢3w ago
ok I will try it hey removing those args fixed it šŸ˜„
Want results from more Discord servers?
Add your server