How to Give Minecraft More RAM (Fix Modpack Crashing) - Every Launcher
Does your modpack crash a few seconds after you load into the world? Or throw an "Out of Memory" error, or just close itself with no warning? Nine times out of ten it's the same thing: Minecraft doesn't have enough RAM allocated. Big modpacks need far more memory than Minecraft gives itself by default - and the fix takes about two minutes. Here's exactly how to do it in every launcher.
Why this happens
Out of the box, Minecraft only gives itself about 2 GB of RAM. That's plenty for vanilla - but a modpack loads hundreds of mods, textures, and extra worlds all at once, and 2 GB fills up almost instantly. When it runs out, the game crashes, usually within seconds of the world appearing.
This is a client-side thing - it happens on your computer, in your launcher. It's not the server. (In fact, if you're on a FreaksMC server, the server is happily running the whole time - it just sees you disconnect when your game closes.)
Symptoms this fixes: game closes seconds after loading in · "Out of Memory" /
java.lang.OutOfMemoryError· exit code-805306369· crash reports mentioningGL out of memoryorMetaspace· stuttering that ends in a freeze.
Step 1 - Check how much RAM your PC actually has
Before you change anything, find your total system RAM so you don't over-allocate:
- Windows: Ctrl + Shift + Esc Performance tab Memory (shows total, e.g. 16.0 GB)
- Mac: About This Mac Memory
Now pick your number - and the golden rule is don't give Minecraft everything. Your operating system, browser, and Discord all need RAM too. Leave at least 3-4 GB free for the rest of your computer.
| Your total RAM | Give Minecraft |
|---|---|
| 8 GB | 4-5 GB (it'll be tight - close other apps) |
| 16 GB | 8 GB |
| 32 GB | 8-10 GB |
Step 2 - How much does your pack need?
More RAM isn't automatically better - past what the pack needs, extra RAM can actually cause stutter (longer garbage-collection pauses). Match it to your pack:
| What you're running | Allocate |
|---|---|
| Vanilla or a few mods | 2-4 GB (default is usually fine) |
| Light modpack (under ~100 mods) | 4-6 GB |
| Medium modpack (~100-200 mods) | 6-8 GB |
| Heavy modpack (300+ mods, shaders) | 8-10 GB |
Most modpacks run best on 8 GB. Going above ~10 GB rarely helps and can make things worse.
Step 3 - Set it in your launcher
RAM is set in your launcher, not by the mod loader - so Forge, Fabric, Quilt, and NeoForge all use the same steps below. Find your launcher:
Official Minecraft Launcher (Vanilla / Forge / Fabric)
- Open the launcher Installations tab.
- Hover your profile click the ⋮ (three dots) Edit.
- Click More Options.
- In the JVM Arguments box, find
-Xmx2Gand change the number - e.g.-Xmx8G. - Save, then play.
CurseForge
- Click the gear / Settings (bottom-left).
- Go to Minecraft scroll to Java Settings.
- Drag the Allocated Memory slider (e.g. to 8192 MB).
- (Per-pack instead: click your modpack ⋮ Profile Options tick "Override" and set the memory there.)
Modrinth App
- Open Settings (gear icon) Java and Memory (or the instance's Options Java).
- Drag the Memory / Maximum Allocation slider to ~8192 MB.
- Launch the pack.
Prism Launcher
- Right-click your instance Edit.
- Settings tab Java.
- Tick Memory, then set Maximum memory allocation (e.g. 8192 MB).
- (Or set it for everything under the main Settings Java page.)
MultiMC
- Right-click your instance Edit Instance.
- Settings tick Memory.
- Set Max memory allocation (e.g. 8192 MB).
ATLauncher
- Settings Java/Minecraft.
- Set Maximum Memory/RAM (e.g. 8192 MB).
- (Or per-pack: Instances your pack Settings.)
GDLauncher
- Settings Java Memory.
- Drag the RAM slider up. (Also settable per-instance in the instance's options.)
Technic Launcher
- Top-right Launcher Options Java Settings.
- Set Memory from the dropdown.
- Important: the dropdown only shows options above 1.5 GB if you have 64-bit Java installed (see below).
The one gotcha: 64-bit Java
If your launcher won't let you set more than ~1.5 GB, you're on 32-bit Java. Install the 64-bit version (from Adoptium/Temurin or Oracle), restart your launcher, and the higher options unlock. Modern launchers (CurseForge, Modrinth, Prism) bundle their own 64-bit Java, so this mostly affects older setups and Technic.
Your server should never be the bottleneck
FreaksMC runs modpacks on real hardware with plenty of RAM, one-click modpack installs, and crossplay - so once your client's sorted, your world runs smooth for everyone. Founder-run, set up in about 60 seconds.
See plans from $3/moStill crashing after adding RAM?
If more memory didn't fix it, it's likely one of these:
- You allocated too much - if you gave Minecraft nearly all your RAM, dial it back so your system keeps 3-4 GB free.
- Graphics driver - update your GPU drivers (NVIDIA/AMD/Intel), especially if the crash mentions
GLorOpenGL. - A specific mod - shader mods (Oculus/Iris) and their settings are common culprits. Try lowering render distance and turning shaders off to test.
- The real answer is in your crash report. Open your modpack instance's
crash-reportsfolder, grab the newest file, and read the top few lines - it names the mod or class that failed. On FreaksMC, you can send that file to support and we'll pinpoint it for you.
Quick checklist
- Confirm it's your client crashing, not the server (the server keeps running without you).
- Check your PC's total RAM - leave 3-4 GB free for the system.
- Match the amount to your pack (8 GB suits most modpacks).
- Set Allocated Memory / Max RAM in your launcher (steps above - same for Forge/Fabric/Quilt/NeoForge).
- If it's capped at 1.5 GB, install 64-bit Java.
- Still crashing? Grab the newest crash report and send it to your host.
Two minutes of RAM tweaking is the difference between a modpack that crashes on sight and one that runs beautifully - and now you know exactly where the setting lives in every launcher.
Want a server that just runs fast?
FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.
See plans from $3/mo