How to Increase Minecraft Memory Usage

Posts 15 of 5 · Page 1 of 1
How to Increase Minecraft Memory Usage
For now this is only for Windows XP (Windows 7 and Vista need minor tweaks - see below)

First figure out how much RAM (Random Access Memory) you have to work with.
#1. Click the start button
#2. Type into run: dxdiag
#3. A window should load and it should say XXXX RAM.
That's how much memory you have... congrats!

Now minecraft uses a default memory of 495Mbs, but you can allocate more. Here's how you do it (assuming you have more).

#1. First create a .txt file in the same folder as your minecraft.exe.
#2. Then open that file.
#3. Type these two lines of text:

@EcHo OFF
"C:\Program Files\Java\jre7\bin\javaw.exe" -Xmx2048m -Xms2048m -jar "C:\Minecraft.exe"

#4. Then save that file as a .bat file (aka Batch file). The way you do this is in the menu, hit Save-As, click "All File Types" and then change the name from XXX.txt to XXX.bat. The icon should change if you did it correctly and you should be able to run it. Hit F3 to make sure the allocated memory changed while running minecraft.

Below are some troubleshooting points and explanations:

The path needs to be exactly right for both your java path (for javaw.exe) and for your minecraft.exe.

If you are running 64bit or Windows 7 (which will sometimes default the java installation path)
Your path will be under Program Files (x64)/Java/etc.
Also the javaw.exe will most likely be java6.exe (it depends)

An example path is given for XP:
"C:\Program Files\Java\jre7\bin\javaw.exe"
An example path is given for Vista/Windows 7:
"C:\Program Files (x86)\Java\jre7\bin\javaw.exe"

Explanation:
Xmx is maximum memory allocated
Xms is initial memory allocated
You can use any number you want potentially.

Virus Scans:
-Mine craft bat
Virus Total: https://www.virustotal.com/file/4f9c...is/1340371822/
Virus Chief: Minecraft.bat - Jotti's malware scan

-jre-7-windows-x64.exe
Virus Total: https://www.virustotal.com/file/48bc...is/1340372045/
Virus Chief: jre-7-fcs-bin-b147-windows-x64-27_jun_2011.exe - Jotti's malware scan

@Polo @Rigby @Paladin


jre-7-windows-x64_mpgh.net.rar18.2 MB · 12 downloads Scanning…
Minecraft_mpgh.net.rar244 B · 14 downloads Scanning…
Files are approved.
Good tut, I was actually unaware of this, so this helps!
Diverting a couple of my friends to this thread!
Great tutorial !
I made my own .bat file (but also compared it to yours). Double checked everything, Java is the right directory, my minecraft.exe is the right directory, but every time I hit it, it tells me:

Invalid or corrupt .jar file C:\Users\C-Dawg\Desktop\Minecraft\Minecraft.exe

This made me think maybe I should tell it to go to the .jar file in my Minecraft folder but, that didn't work either. That just made the black command prompt window come up for a split second, go away, and then nothing happened. (The Java process didn't even start.)

Anyways, here's the code, did I do anything wrong? (P.S: I also edited the memory amount, though I doubt that is having any effect.)

Code:
@echo off
"C:\Program Files\Java\jre7\bin\javaw.exe" -Xmx2560m -Xms2048m -jar "C:\Users\C-Dawg\Desktop\Minecraft\Minecraft.exe"
Posts 15 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?