java.lang.OutOfMemoryError whenever rejoining a server

Happened thrice now, where I'll delete the .sqlite file for the server, fly around generating lods for awhile, then ill quit out of the game to go do something else, and when i rejoin I load in and the game almost immediately freezes and then crashes. Here's a screenshot of the log, just in case.
No description
25 Replies
Miki_P98
Miki_P983mo ago
How much RAM do you have in your PC? How much did you allocate to MC? And what is the RAM usage in the F3 menu just before the crash?
esparttt
espartttOP3mo ago
I have 32gb, I have 16 allocated to the game, and ill open up my resource monitor and check what it looks like as it's crashing rn alright so on the menu it sits around 8, and then when i join it shoots up to 24, hangs, then crashes earlier I tried giving it 20gb to play with and it did the same thing but shot up to 28 instead lol yeah double checked by looking in the F3 menu and not task manager, memory shoots up at an immediate and alarming rate before crashing hahaha
Miki_P98
Miki_P983mo ago
Do you have any custom GC/JVM flags?
esparttt
espartttOP3mo ago
the only java arguments ive changed is the amount of ram allocated Its actually doing it even with rendering turned off for some reason ok so even with rendering off and all the threading settings set to the default of 2 threads at 0.25, the memory usagage still instantly spikes, just at a mildly slower rate is there any i should have?
Miki_P98
Miki_P983mo ago
Disabling rendering only hides DH, it still does everything it normally does When allocating more than 8 GB of RAM it is advise to have GC tuning flags to reduce the stutter. You can try if these flags fix your problem, but I really doubt they will: -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps They require JAVA 21, so for MC <1.21 you will also have to override the JAVA version . -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true Here are more classic GC tuning flags, a bit old at this point, but still good enough for most . I've asked as some guides are adding flags that may increase the memory usage in some edge cases . What is your full mod list? /logstored
YAGPDB.xyz
YAGPDB.xyz3mo ago
You should send your latest.log file to provide additional useful information. Logs are located in the .minecraft/logs directory. On Windows: %appdata%\.minecraft\logs On Linux: ~/.minecraft/logs On Mac: ~/Library/Application Support/minecraft/logs Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed. After uploading the file, click on Save and send the link.
esparttt
espartttOP3mo ago
esparttt
espartttOP3mo ago
really mainly performance stuff along with some QoL tweaks
No description
esparttt
espartttOP3mo ago
unfortunately they didn't haha, but ill keep them just for the normal stuttering for the future lol
Miki_P98
Miki_P983mo ago
I have no idea what can be causing this Does this happen when you disable everything except DH?
esparttt
espartttOP3mo ago
let me do that rq
esparttt
espartttOP3mo ago
:colphneSmile:
No description
esparttt
espartttOP3mo ago
this has me goofed man idk lmao -deleted the (quite large) .sqlite for the server, joined, memory shot up to 99, but then back down to 1% and just sort of hovered around 30% -left, rejoined, no crash. -decided to generate just a bit of land to see if that would put it over the limit, only around a couple hundred blocks. -left, rejoined, crash why a 40mb sqlite is causing a memory leak and crash is beyond me
Miki_P98
Miki_P983mo ago
what quality preset do you use?
esparttt
espartttOP3mo ago
pretty high but i don't think that explains the 0-99% memory in less than 5 seconds, with next to zero effect on cpu and gpu usage at all i could be wrong, so ill test it
Miki_P98
Miki_P983mo ago
It shouldn't but I'm running out of ideas, so try mediun preset The nightly can just have a new bug, that wasn't fixed yet You can try DH 2.2.x Or redownload DH 2.3 in case a fix was already added
esparttt
espartttOP3mo ago
whats going on the bot is legit like not letting me type actually blocked like 6 messages in a row anyways
Miki_P98
Miki_P983mo ago
d word is blocked
esparttt
espartttOP3mo ago
:alibaba_wuh: i dont even think churches disallow that word lmao ill be gosh darned, but that actually fixed it ok good "darn" isnt blocked I turned the vert and horizontal resolution down to the lowest setting and it stopped crashing'
Miki_P98
Miki_P983mo ago
well glad it is working, but IDK why it wasn't Now you can try finding the highest "safe" settings
esparttt
espartttOP3mo ago
ill try reverting to 2.2.x and also redownloading 2.3 very very strange yeah i have no idea because i have no idea why it was crashing on a 40mb sqlite when previously i had a 3GB sqlite that i had to delete since I got a new drive no difference in settings yeah whatever the latest nightly build i had installed just had a [redacted] up memory leak or had something about it that caused a crazy memory leak, not to put all the blame onto the mod lol
Miki_P98
Miki_P983mo ago
So does DH 2.2.x work corretly?
esparttt
espartttOP3mo ago
yeah ive been testing it out, both loading lods and generating new terrain and stuff, everything seems to be working fine occasionally i get some pretty large holes, but relogging fixes it
Miki_P98
Miki_P983mo ago
That is bad to hear You are the only one with the problem right now So I won't ping any devs yet But there might be a new memory leak or something 16 GB should be plenty
esparttt
espartttOP3mo ago
yeah I know with java especially anything past 16 is basically diminishing returns, because java doesn't like using memory efficiently at all I've been doing testing and even with my render distance set to 300 w/ a 6gb sqlite file, literally no issues at all on 2.2.0
Want results from more Discord servers?
Add your server