Page 1 of 1

Minecraft is running out of memory! (on the client)

Posted: Mon Jul 11, 2011 1:33 pm
by kraze
Sometimes Minecraft can run out of memory, a situation that can be made worse if you are running a nice texture pack. If it does, try reducing your client view distance in-game -- that's usually the culprit. If that doesn't fix it, you can try this procedure to increase the memory given to Minecraft. (This was originally posted on the MC forums.)

**NOTE** Be sure you are running 64bit version of Java if you have a 64 bit OS.
  1. Open your CONTROL PANEL.
  2. Type 'Java' inside the 'Search Control Panel' box.
  3. Click the Java icon that pops up.
  4. Click the Java tab.
  5. Click View...
  6. Make sure there is only ONE line in here; any more lines could cause issues.
    If you have multiple lines uninstall all versions of Java from your system and download Java JDK 7 from the following link.
    Make sure to get the x64 version if you have a 64-bit OS.
  7. Change the memory runtime parameter ("-Xmx").

    For instance, you may need to set it to:
    -Xincgc -Xmx2048M

    Change the value between "-Xmx" and "M" depending on how much RAM you have.
    For 32-bit Operating Systems, 768M may work well. If you have 64-bit, or that doesn't work, try other values, such as:


    The best value for you varies depending on how much System RAM you have. Be careful not to give it more than 500 MB or so from your physical amount!
  8. Click OK.
  9. Run Minecraft