• 0

    posted a message on Help with JVM Arguments

    Hey there,


    My friend and I built a mod pack and are playing together, but I am having some issues which appeared after playing on the server for a collective of 20 hours.


    So I'm trying to fix up/adjust my JVM arguments. Basically what is happening is I am experiencing hard lag spikes every few seconds caused by the mem hitting 100% in the F3 debug menu. I monitored the usage and the GC is clearing up memory, but does so at inconsistent intervals and is never able to keep up with the memory usage/consumption. My friend who has an equal system to mine has 0 issues when we play on his server. We use the same JVM argument, and I've even tried more complex ones, and still have the same issue.


    I have 16G of RAM (soon to be 32G). IDK what other system info you may need, but I run Windows 10, and i7 core. If you need more details, let me know. (F3 screenshot is attached)


    Our JVM Argument

    -Xmx8G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn2G


    Other argument I use as a base

    -XX:+UseG1GC -Xmx9G -Xms9G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

    Posted in: Java Edition Support
  • To post a comment, please .