Java Arguments

Java arguments (JVM flags) let you fine-tune how Minecraft runs. Access them via Settings → Java Arguments.

Common Arguments Explained

ArgumentEffect
-Xmx2GSets maximum heap size to 2GB
-Xms512MSets initial heap size to 512MB
-XX:+UseG1GCUse G1 garbage collector — better for Minecraft
-XX:MaxGCPauseMillis=200Target max GC pause of 200ms (reduces lag spikes)
-XX:+DisableExplicitGCPrevents mods from forcing garbage collection
-Dfml.ignoreInvalidMinecraftCertificates=trueFixes some Forge launch errors

Arguments to Avoid

ArgumentWhy to Avoid
-XX:+UseZGCNot available on all JDK/Android combos
-XX:+UseShenandoahGCLimited support on Android

Version-Specific Notes

If you're unsure, leave the arguments at their defaults. Only change them if you're experiencing specific performance or crash issues.