How to allocate RAM to Minecraft

Allocating RAM to Minecraft allows the game to load demanding texture packs.

Important: you can’t allow more memory than the amount present in your system

  1. Check your computer’s available RAM in your system settings
  2. Open the launcher and head to Launch options
  3. Enable Advanced settings and then open your profile
  4. Enable JVM Arguments and replace everything with -Xmx4G

Now replace the 4 with the amount of RAM you need.

For example: if you need 4GB, paste -Xmx4G. If you need 16GB, paste -Xmx16G.