How to allocate more RAM to Minecraft in any launcher
How to allocate more RAM to Minecraft, step by step, in the CurseForge app, Modrinth App, Prism Launcher, ATLauncher and the official Minecraft Launcher.
· 4 min readThe short answer
To allocate more RAM to Minecraft, raise the maximum memory in your launcher. In the CurseForge app it's Settings, Minecraft, Allocated Memory. In Modrinth App, Prism Launcher and ATLauncher it's the instance's Java and memory settings. In the official Minecraft Launcher, change -Xmx in the installation's JVM arguments. Most modpacks want 4 to 8 GB, never more than half your computer's RAM.
Your modpack stutters, hangs on the loading screen or crashes with OutOfMemoryError, and the advice is always the same: give Minecraft more RAM. The setting is easy to change once you know where your launcher hides it. Here's the exact screen for each one.
Before you start: how much RAM your computer has
You can't give Minecraft more memory than your computer has, and it shouldn't get more than about half.
- Windows: open Settings, choose System, then About. Under Device specifications you'll see how much RAM is installed. Task Manager's Performance tab, under Memory, shows it too.
- Mac: open the Apple menu and choose About This Mac. The Memory line shows the total.
Most launchers ask in megabytes (MB), not gigabytes. These are the numbers to type:
| You want | Type in MB |
|---|---|
| 4 GB | 4096 |
| 6 GB | 6144 |
| 8 GB | 8192 |
CurseForge app
The CurseForge app has one setting for every pack, and an override for each profile.
For every pack:
- Click the settings cog in the bottom-left corner of the app.
- Under Game Specific, choose Minecraft.
- Scroll down to Java Settings and move the Allocated Memory slider.
For one pack only:
- Go to My Modpacks and open the pack.
- Click the three-dot menu next to Play and choose Profile Options.
- Turn off the option to use the system memory settings, move the slider, then click Done.
The per-pack value wins over the global one, so if a pack ignores your new global setting, check its profile options.
Modrinth App
For one instance:
- Open the instance and click its settings.
- Go to the Java and memory tab.
- Switch on Custom memory allocation and drag the slider.
For every instance: open the app's settings (the cog), find Java and memory under Instance defaults, and set Memory allocation. Instances use this unless they have their own custom allocation.
Prism Launcher
For one instance:
- Select the instance and click Edit.
- Choose Settings, then the Java tab.
- Tick the Memory box. The instance now uses its own values instead of the global ones.
- Set Maximum Memory Usage.
For every instance: open Prism's own settings, go to the Java tab and set the maximum in the Memory section. Any instance with its Memory box unticked follows this.
Prism shows a warning under the value if it's close to, or more than, your computer's memory.
ATLauncher
For every instance: click Settings in the sidebar, open the Java/Minecraft tab and set Maximum Memory/Ram.
For one instance: go to Instances, click Settings on the instance you want, open its Java/Minecraft tab, set the maximum memory and click Save.
Official Minecraft Launcher
The official launcher has no slider. You change a Java argument instead.
- Open the Installations tab.
- Hover over the installation you play (for a modded game, the NeoForge or Forge one), click the ⋯ button and choose Edit.
- Open More options.
- In JVM arguments, find
-Xmx2Gat the start. Change the number:-Xmx4Gfor 4 GB,-Xmx6Gfor 6 GB. - Click Save.
Change only the -Xmx value. The G means gigabytes; leave the rest of the line as it is. If you break the line, a fresh installation brings back the default.
How much to give
Short version: about 4 GB for a small pack, 6 GB for a medium one, 8 GB for a large one, and never more than about half your computer's RAM. More than a pack needs can make stutters worse, not better. The full reasoning, and how to tell whether memory is really your problem, is in how much RAM to allocate for a modpack.
Let the pack tell you the number
Most people guess, then guess again after a crash. Packspire builds NeoForge 1.21.1 packs and tests each one on a real server and a real game client, measuring memory as it goes, so the pack's page says how much to set in your launcher and how much a server needs.
Plan your pack with Packspire. If more memory didn't fix your crash, see how to find the mod causing a crash.
Frequently asked questions
How do I allocate more RAM to Minecraft in CurseForge?
Click the settings cog, choose Minecraft under Game Specific, and move the Allocated Memory slider under Java Settings. To change one pack only, use Profile Options from the three-dot menu next to Play.
How do I give Minecraft more RAM without a mod launcher?
In the official Minecraft Launcher, edit the installation, open More options and change -Xmx2G in the JVM arguments to a bigger number, such as -Xmx4G.
Why didn't my new RAM setting do anything?
The game reads the setting when it starts, so close and relaunch it. If it still uses the old amount, the instance or profile probably has its own memory override, which wins over the launcher's global setting.
Can I give Minecraft too much RAM?
Yes. Giving it more than about half your computer's memory starves everything else, and a very large allocation can make Java's occasional memory clean-ups longer, which shows up as stutters.
Sources
- Allocating memory, the Enigmatica modpack team's guide to the CurseForge app settings
- Modrinth App source code, for the instance settings tabs
- Prism Launcher: Java settings
- ATLauncher source code, for the Java/Minecraft settings tab
- Minecraft Launcher and Launcher 2.1.367x, on the Minecraft Wiki, for JVM arguments and the 2 GB default
- Which version of Windows am I running?, Microsoft, for finding installed RAM
- Get system information about your Mac, Apple
