How to Allocate More RAM to Minecraft
If your Minecraft is stuttering or crashing, it might be running out of memory. Learn how to allocate more RAM in the Java Edition launcher.
Reading time: 2 min read
How to Allocate More RAM to Minecraft
By default, the Minecraft Java Edition launcher often limits the game to use only 2GB of RAM. For modern versions like 1.21.1, especially if you are using high-resolution texture packs or shaders, this is often not enough.
Allocating more RAM can solve issues like "Out of Memory" crashes, stuttering, and low FPS.
How much RAM should you allocate?
- Vanilla Minecraft: 4GB is usually plenty.
- Light Modded/Shaders: 6GB - 8GB.
- Heavy Modpacks: 8GB - 12GB.
Never allocate more than 50% of your total system RAM. If you have 16GB of RAM, allocating 12GB to Minecraft can starve your Operating System and background apps, causing the whole computer to lag.
Steps to Allocate RAM (Official Launcher)
- Open the Minecraft Launcher.
- Click on the Installations tab at the top.
- Hover over the version you want to edit and click the three dots (... ) and select Edit.
- Click More Options at the bottom.
- Look for the JVM Arguments text box.
- At the very beginning of the string, you will see
-Xmx2G. This means 2GB is allocated. - Change the
2Gto the amount you want (e.g.,-Xmx4Gfor 4GB,-Xmx8Gfor 8GB). - Click Save and launch the game.
Verifying the Change
Once the game is running, press F3. In the top right corner, you will see "Mem:" followed by a percentage and the total allocated memory. If it shows the value you entered (e.g., 4096MB), the change was successful!
Related Tutorials:
Related posts
The Ultimate Minecraft Server Configuration Guide: Paper, Spigot, and Bukkit
A categorical breakdown of the best performance settings for your server.properties, bukkit.yml, spigot.yml, and paper configuration.
Top 5 Minecraft Performance Mods for 1.21.1 (Sodium & More)
If your Minecraft Java Edition is lagging, you need these mods. Learn how Sodium, Lithium, and Iris can triple your FPS instantly.
Top 3 Minecraft PvP Texture Packs for Performance & Visibility
Is your visibility blocked by fire and items? Discover the best 8x and 16x texture packs designed for low particles and high FPS.
