JVM Args?

Im trying to find best java args because the game has been lagging and filling out my ram even if I allocate half of my ram here is the one that I use right now -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseZGC -XX:+ZGenerational -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 What should be replaced or removed from this and what should be added?
7 Replies
Miki_P98
Miki_P984mo ago
Try simplifying it to -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+UseFastUnorderedTimeStamps How much do you allocate to MC and how much do you have in your system? Using those flags with a lot of mods puts my RAM at stable 14 GB if I allocate over it and the game if perfectly happy with 12 GB or even less, like 10 GB (I have not tested smaller amounts) Z GC is designed to be self tuning so changing a lot of GC options is unrecommended XX:+UseCriticalJavaThreadPriority can in theory reduce your RAM usage a bit, but it will decrease your fps and generation speed Also try adding mods such as: - Ferritecore - Krypton - ModernFix To reduce the RAM usage of the game
shaurya
shaurya4mo ago
How much ram do you have ?
Miki_P98
Miki_P984mo ago
12 allocated at the moment with 32 in the system, and during testing MC did stop at a stable 14 GB I use a lot of mods with audio track and such that use a lot of RAM as well as a 256x resourcepack and Photon shaders
seeya
seeyaOP4mo ago
I have 16 only allocated 8 or 10 of it but it always goes above 12 13 gigs because of lods I think
Miki_P98
Miki_P984mo ago
try installing these mods: https://discord.com/channels/881614130614767666/1266014657177587723/1266028877990461530 and lower the CPU impact in DH settings
seeya
seeyaOP4mo ago
they are already in the modpack will configure dh to see effects
shaurya
shaurya4mo ago
thats a good amt of ram I also use a lot of mods my Computer has 24 gigs 13 allocated
Want results from more Discord servers?
Add your server