Skip to main content
criticalJava ErrorsAffects: All versions

How to Fix Minecraft Ran Out of Memory

Fix Minecraft Ran Out of Memory by increasing RAM allocation and reducing resource pack and shader load.

Quick Fix

Allocate more RAM in launcher settings. Set -Xmx4G for vanilla, -Xmx6G for modded.

Error Message

Minecraft has run out of memory

How to Fix

1

Increase RAM in launcher JVM arguments: -Xmx4G

2

Remove high-resolution (512x) resource packs

3

Disable or reduce shader settings

4

Lower render distance and simulation distance

5

Close background applications

Common Causes

  • Default RAM allocation is too low
  • High-resolution resource packs consuming memory
  • Shader packs with high memory usage
  • Too many entities or items loaded

Diagnostic Steps

  1. Open launcher settings and find JVM arguments
  2. Change -Xmx value to 4G or higher
  3. Remove heavy resource packs
  4. Lower video settings
  5. Restart the game

FAQ

Will allocating too much RAM hurt performance?

Yes, allocating more than 8GB can cause longer garbage collection pauses. 4-6GB is optimal for most setups.

Related Errors

Need More Help?