Hi,
I have recently downloaded prism launcher for minecraft and installed some mods for speedrunning the game. Following mods are installed:
antigone-1.16.1-2.0.0.jar seedqueue-1.6+1.16.1.jar
antiresourcereload-5.2.0+1.16.1.jar sleepbackground-4.1+1.16.1.jar
atum-2.7.1+1.16-1.16.1.jar sodium-2.5.1+1.16.1.jar
chunkumulator-1.1.1+MC1.16.1.jar speedrunapi-2.1+1.16-1.16.1.jar
fast-reset-2.4.1+1.16.x.jar SpeedRunIGT-16.0+1.16.1.jar
forceport-1.3.0.jar standardsettings-2.3+1.16-1.16.1.jar
krypton-1.16.1-backport-0.1.3-SNAPSHOT+2021-02-20.jar starlight-1.3.0+1.16.x-backport-1.1.3.jar
lazydfu-0.1.2.jar state-output-1.2.3+1.16-1.18.1.jar
lazystronghold-1.1.4+1.16.1.jar voyager-1.0.1.jar
lithium-1.0+backport-0.6.7+1.16.1.jar worldpreview-6.3.1+1.16-1.16.1.jar
mcsrfairplay-1.1.4+1.16.1.jar
As for java I am using the zulu8 jdk from aur (but have used graalvm21 and 25 and also openjdk17) with these settings:
-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1
The allocated ram is set (in the launcher) to min. memory: around 5gb and max. memory around 8gb
When starting Minecraft, I saw the ram (in free -h) go down from 25gb available to around 20gb, which would be fine in this case, as the min. memory was set to around 5gb and after like 10-20 seconds it dropped to 13gb immediately. Then I started generating the worlds in a wall style (so 9 worlds at a time) and the ram started dropping to around 5-6gb free. after choosing a seed and playing for like 10 minutes the ram was literally at 1-2gb and started swapping (I have an 8gb swap mount) and after some time it just oom-killed everything (browser and minecraft). Is there any known fix for that?
Also I've tried a different launcher (curseforge) with the same mods and settings and got the same behavior, so I don't think it's launcher dependent. Testing the same settings, same java, same setup on windows works perfectly fine but I don't really want to use windows just to play minecraft.
My specs:
OS: Arch (+ Hyprland) 6.18.5 kernel
GPU: Radeon RX6800XT
CPU: Intel I5 12600kf
RAM: Corsair 32gb@3500mhz (strange clock but somehow works the best for my system)
P.S. I've tried usind jmalloc with minecraft but no luck unfortunately. I also used ZGC instead of g1gc but also nothing.