How to Increase Java Memory on Minecraft
Here is a more in depth guide to increasing memory for java that I have made.
Default Java Memory is around 500MB. Not enough especially for Minecraft
This will increase your FPS aleast 30fps usually. Very useful for those who suffer with poor fps or lag.
FIRST!!! Check How Much RAM You Have:
Click Start and Type System Information. Click on it and it should show you the Available & Physical Memory on your Computer
Once your done go to the first step.
Step One: Open Notepad or Notepad++
Step Two:Type @ECHO OFF
If you have more than 4GB of memory you maybe increase it to your liking.
Step Three Copy the code below and edit to your -Jar "Location of Minecraft.exe" (Example "D:\Minecraft.exe")
Now Check if your typed everything correctly and it looks similar to mine. Example:
Once your done save the file as Minecraft.bat and save to your desktop.
When you launch it should show Command Prompt and Launch Minecraft.
Click Singleplayer and Press F3 to check if it is all right. If yes you have completed the tutorial.
Screenshots:
This is all done on Fancy Graphics, Far Rendering and Max FPS Performance Video Settings
Before Increasing Java Memory
![[Image: mcbefore.png]](http://img28.imageshack.us/img28/9739/mcbefore.png)
You can clearly see that the fps are less and memory is less when on default playing Minecraft.
After Increasing Java Memory
![[Image: mcafter.png]](http://img850.imageshack.us/img850/3426/mcafter.png)
You now see a big increase of FPS in game and less lag.
Default Java Memory is around 500MB. Not enough especially for Minecraft
This will increase your FPS aleast 30fps usually. Very useful for those who suffer with poor fps or lag.
FIRST!!! Check How Much RAM You Have:
Click Start and Type System Information. Click on it and it should show you the Available & Physical Memory on your Computer
Once your done go to the first step.
Step One: Open Notepad or Notepad++
Step Two:Type @ECHO OFF
If you have more than 4GB of memory you maybe increase it to your liking.

Step Three Copy the code below and edit to your -Jar "Location of Minecraft.exe" (Example "D:\Minecraft.exe")
Now Check if your typed everything correctly and it looks similar to mine. Example:
Code:
@ECHO OFF
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx4g -Xms2g -jar "C:\Users\James\Downloads\minecraft.exe"Once your done save the file as Minecraft.bat and save to your desktop.
When you launch it should show Command Prompt and Launch Minecraft.
Click Singleplayer and Press F3 to check if it is all right. If yes you have completed the tutorial.
Screenshots:
This is all done on Fancy Graphics, Far Rendering and Max FPS Performance Video Settings
Before Increasing Java Memory
![[Image: mcbefore.png]](http://img28.imageshack.us/img28/9739/mcbefore.png)
You can clearly see that the fps are less and memory is less when on default playing Minecraft.
After Increasing Java Memory
![[Image: mcafter.png]](http://img850.imageshack.us/img850/3426/mcafter.png)
You now see a big increase of FPS in game and less lag.
(This post was last modified: 02-23-2012, 03:12 PM by Adam.)
Posts: 611 Joined: Feb 2010
Reputation:
6
Good post, but to simplify it, all that is needed it this
@Echo off
java -Xmx(max memory) -Xms(min memory) -jar "C:\minecraft.exe location\minecraft.exe"
Set the min to something low so minecraft doesn't hog all your ram even when it doesn't need it.
This can also be used with mclauncher(minecraft version changer tool). In my case it looks like this
@Echo off
java -Xmx2048M -Xms128M -jar "C:\minecraft.exe location\mclauncher.exe"
@Echo off
java -Xmx(max memory) -Xms(min memory) -jar "C:\minecraft.exe location\minecraft.exe"
Set the min to something low so minecraft doesn't hog all your ram even when it doesn't need it.
This can also be used with mclauncher(minecraft version changer tool). In my case it looks like this
@Echo off
java -Xmx2048M -Xms128M -jar "C:\minecraft.exe location\mclauncher.exe"
(This post was last modified: 12-15-2011, 08:53 PM by st33nburgh.)
Posts: 264 Joined: Mar 2011
Reputation:
0
What am i suppose to do after I put it in notepad?
Posts: 3 Joined: Sep 2011
Reputation:
0
None of your methods worked for me.
Had to do some "Research" and I got this code:
javaw -Xmx5120m -Xms5120m -jar "minecraft.exe"
Which basically allocates about 5gb of RAM to minecraft. Not sure how you're all getting the insane FPS rates though. I get around 30ish with java.exe at a "High" priority. Maybe it's because the server I go on isn't that high quality, or the GPU I use isn't very good. Meh.
Had to do some "Research" and I got this code:
javaw -Xmx5120m -Xms5120m -jar "minecraft.exe"
Which basically allocates about 5gb of RAM to minecraft. Not sure how you're all getting the insane FPS rates though. I get around 30ish with java.exe at a "High" priority. Maybe it's because the server I go on isn't that high quality, or the GPU I use isn't very good. Meh.
Posts: 201 Joined: Jul 2011
Reputation:
15
(01-12-2012, 03:54 PM)OinkRider29 Wrote: This is my normal FPS level in-game (With 32x32 Pack and Max Graphics).GEEZUS CHRIST I need a new computer.
Do you think this would increase the FPS? (Your method)
If you don't have a problem, don't try to fix it.
This is for people who experience crashes, or lag spikes while playing. For those people, this could make a huge difference. If your game runs fine already, this won't do much for you. You might gain 1 or 2 fps.
(This post was last modified: 01-12-2012, 04:19 PM by st33nburgh.)
Posts: 264 Joined: Mar 2011
Reputation:
0
Actually it is a good idea to allocate more memory for java especially if you havecustom textures and graphics which could lower fps down slightly. I was using a NVIDIA GeForce GTX 460M 1.5GB on my laptop to write this guide while taking screenshots of the big differences between default java memory limit to a modified java memory limit which was 2GB Minimum and 4GB Max. I have also tried 1gb Minimum and 2gb max and it still gave me a decent fps. Either way getting a bit more fps is better than less fps anyway.
I recommend those who still suffer with under 30 fps to increase virtual memory in windows and do a disk defrag regularly.
http://windows.microsoft.com/en-US/windo...ual-memory
I recommend those who still suffer with under 30 fps to increase virtual memory in windows and do a disk defrag regularly.
http://windows.microsoft.com/en-US/windo...ual-memory
Posts: 611 Joined: Feb 2010
Reputation:
6
(01-12-2012, 03:54 PM)OinkRider29 Wrote: This is my normal FPS level in-game (With 32x32 Pack and Max Graphics).
Do you think this would increase the FPS? (Your method)
WHAT THE **** COMPUTER DO YOU USE!
I'm pretty sure you don't need a **** super computer to play minecraft dude!
Oh,and exactly how much did your **** insane PC cost?
Posts: 847 Joined: May 2011
Reputation:
11
(01-13-2012, 04:35 PM)craigpd Wrote: WHAT THE **** COMPUTER DO YOU USE!
I'm pretty sure you don't need a ******* super computer to play minecraft dude!
Oh,and exactly how much did your ******** insane PC cost?
ASUS Laptop.. :|
I will just copy/paste details straight from site.
_ _ _ _ _ _ _ _ _ _ _ _
CPU Type: Intel Core i7-2670QM 2.2GHz
Graphics Card: Nvidia Geforce GT 540M
CPU Speed: 2670QM(2.20GHz)
GPU/VPU: NVIDIA GeForce GT 540M Dedicated Type
OS: Windows 7 Home Premium 64-Bit
RAM Installed: 7 GB
I'm not much of a computer guy, this one cost me $700.
(This post was last modified: 01-13-2012, 04:51 PM by Oink_mR.)
Posts: 1,001 Joined: Aug 2011
Reputation:
32
@ECHO OFF
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx2g -Xms2g -jar "D:\Minecraft.exe"
where am i suppose to get the minecraft.exe
when i use @ECHO OFF
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx2g -Xms2g -jar "C:\Users\LinkMaster123\AppData\Roaming\.minecraft"
it just closes and doesn't do anything *i am making it a minecraft.bat file*
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx2g -Xms2g -jar "D:\Minecraft.exe"
where am i suppose to get the minecraft.exe
when i use @ECHO OFF
"C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx2g -Xms2g -jar "C:\Users\LinkMaster123\AppData\Roaming\.minecraft"
it just closes and doesn't do anything *i am making it a minecraft.bat file*
Posts: 3 Joined: Sep 2011
Reputation:
0
Users browsing this thread: 1 Guest(s)
![[Image: 2012-01-12_165035.png]](http://i1125.photobucket.com/albums/l582/OinkRider29/2012-01-12_165035.png)