X

THANK YOU!

Post has been reported succesfully.

signout

Change the Garbage Collector for Minecraft: Java Edition

Garbage collection is a Java memory management tool that helps improve game performance. Beginning with Minecraft: Java Edition version 26.1-snapshot-1, the default garbage collector has changed. If you experience performance issues, you may want to switch back to the previous garbage collector.  

Change the garbage collector in JVM Arguments

  1. Open the Minecraft Launcher and sign in with your Microsoft account.
  2. Select Minecraft: Java Edition on the left.
  3. Select the Installations tab at the top.
  4. Select the installation you want to change.
  5. Select More Options on the Edit installation screen.
  6. Copy all the text in the JVM arguments field and paste it into a text editor.
    • Windows: Notepad
    • macOS: TextEdit
  7. Save the text file so you can restore the original JVM arguments if needed.
  8. In the JVM arguments file, replace the phrase -XX:+UseZGC with -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M.
  9. Select Save

Last Updated - 2026-01-07 18:02:47 UTC

Was this article helpful?

Powered by Zendesk