X

THANK YOU!

Post has been reported succesfully.

signout

Fix Minecraft: Java Edition Game Crashes by Checking Memory Allocation

If the memory allocation for Minecraft: Java Edition doesn’t match your system’s available RAM or the game version requirements, you may experience performance issues, including crashes, lag, or stuttering.

You may want to change JVM arguments when:

  • Your system has 4 GB of RAM or less: Decrease memory allocation to 2 GB for stability.
  • Your system has available RAM (8 GB or more): You can increase memory allocation for better performance.

For example, after version 26.1-snapshot-2, the default memory allocation for playing Minecraft: Java Edition changed from 2 GB to 4 GB. If your system has less than 4 GB of RAM, you need to manually change the allocated memory back to 2 GB to avoid crashes.

Change the memory allocated to Minecraft: Java Edition

Memory allocation is editable in Java Edition by changing your JVM (Java Virtual Machine) arguments, accessed from the Minecraft Launcher. Always backup your Minecraft Worlds before troubleshooting or changing your game settings.

  1. Verify the installed RAM on your computer. This will determine the maximum you can allocate to Minecraft.
    • Windows: Start menu > Settings > System > About
    • macOS: Apple icon > About This Mac
  2. Open the Minecraft Launcher and sign in with your Microsoft account.
  3. Select Minecraft: Java Edition on the left.
  4. Select the Installations tab at the top.
  5. Select the installation you want to change.
  6. Select More Options on the Edit installation screen.
  7. Copy all the text in the JVM arguments field and paste it into a text editor.
    • Windows: Notepad
    • macOS: TextEdit
  8. Save the text file so you can restore the original JVM arguments if needed.
  9. Locate the memory value in the JVM Arguments field in the Launcher (-Xmx2G) and change the number to the amount of RAM you want to allocate. For example, changing the value to -Xmx4G will allocate 4GB of RAM to Minecraft.
    • 32-bit operating systems: 4GB of RAM is the maximum.
    • 64-bit operating systems: Half of your RAM is the recommended maximum.
  10. Select the Save button.

If you encounter errors when trying to launch Minecraft, compare the new value to the backup copy you made and check for syntax mistakes or case differences. You can return the JVM arguments field to its defaults by using the text file you created earlier and pasting its contents into the field. You can also revert changes if you Create a new Minecraft Java Installation to prevent game issues

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

Was this article helpful?

Powered by Zendesk