[mR] Forums
Right now
 
your local time
HL2DM players
0/ 64
rp_revengebay_v1JoinLive
Discord
24online
0 in voiceOpen
Forum
0members here
nobody signed in
Builds saved
29,665
by 1,176 builders since 2008Browse

How to Increase Java Memory on Minecraft

Started by Adam, 12-14-2011, 03:37 PM10 replies28,418 viewsPinnedThreaded Mode
Thread Rating:
  • 19 Vote(s) - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adam [mR] Member Offline 12-14-2011, 03:37 PM #1
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. Smile

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]

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]

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
Reply
st33nburgh Bored of Minecraft. I'm not on much now. Offline 12-15-2011, 08:50 PM #2
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"

(This post was last modified: 12-15-2011, 08:53 PM by st33nburgh.)
Posts: 264 Joined: Mar 2011 Reputation: 0
Reply
Tjminecraftable Conscript Offline 01-12-2012, 03:10 PM #3
What am i suppose to do after I put it in notepad?
Posts: 3 Joined: Sep 2011 Reputation: 0
Reply
Oink_mR Forum Member Offline 01-12-2012, 03:54 PM #4
This is my normal FPS level in-game (With 32x32 Pack and Max Graphics).

[Image: 2012-01-12_165035.png]

Do you think this would increase the FPS? (Your method)
Posts: 1,001 Joined: Aug 2011 Reputation: 32
Reply
GeneralApathy Regular Offline 01-12-2012, 04:08 PM #5
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.
Posts: 201 Joined: Jul 2011 Reputation: 15
Reply
st33nburgh Bored of Minecraft. I'm not on much now. Offline 01-12-2012, 04:17 PM #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)
GEEZUS CHRIST I need a new computer.
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
Reply
Adam [mR] Member Offline 01-12-2012, 07:37 PM #7
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
Posts: 611 Joined: Feb 2010 Reputation: 6
Reply
craigpd The Welsh one. Offline 01-13-2012, 04:35 PM #8
(01-12-2012, 03:54 PM)OinkRider29 Wrote: This is my normal FPS level in-game (With 32x32 Pack and Max Graphics).

[Image: 2012-01-12_165035.png]

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
Reply
Oink_mR Forum Member Offline 01-13-2012, 04:48 PM #9
(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
Reply
Tjminecraftable Conscript Offline 01-13-2012, 08:04 PM #10
@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*
Posts: 3 Joined: Sep 2011 Reputation: 0
Reply
Users browsing this thread: 1 Guest(s)