Skip to content
GameVault

How to allocate more RAM to Minecraft

Change Minecraft's memory allocation in the official launcher, CurseForge, Prism Launcher and the Modrinth App, and choose the right amount.

Updated

Minecraft only uses the memory its launcher allows. Modpacks often need more than the default, but more is not always better. Use the RAM calculator for a starting value.

How much to allocate

  • Vanilla or a few mods: 2–4 GB.
  • Medium packs (around 50–150 mods): 4–6 GB.
  • Large packs (200+ mods): 6–10 GB.
  • Always leave at least 3–4 GB for Windows and other programs.

Allocating far more than needed can make garbage collection pauses longer, which feels like stutter.

Official Minecraft Launcher

  1. Open Installations and hover over your profile, then choose Edit.
  2. Click More options.
  3. In JVM arguments, find -Xmx2G and change the number, for example -Xmx6G for 6 GB.
  4. Save and launch.

CurseForge app

  1. Open Settings (the gear icon) and go to the Minecraft section.
  2. Under Java Settings, move the Allocated Memory slider.
  3. Settings apply to all CurseForge profiles unless a profile overrides them.

Prism Launcher

  1. Select the instance and click Edit.
  2. Open Settings → Java, enable the memory override and set Maximum memory allocation.
  3. Or set it globally in Prism’s main settings under Java.

Modrinth App

  1. Open the instance and go to its settings.
  2. In Java and memory, set the memory allocation.

Check that it worked

Launch the game and press F3. The top-right corner shows the allocated memory as the maximum value next to memory usage.