Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Allocating more memory to Minecraft


  • Please log in to reply
54 replies to this topic

#1

Daedalus1882

Posted 26 November 2011 - 01:21 PM

I've just watched this video by DocM77:

In the video, he talks about how to use a batch file to allocate more memory to Minecraft.

He uses a command in the batch file like this:
javaw -Xmx8192m -Xms4096m -jar "I:\Users\Docm77\Desktop\Minecraft.exe"

This command apparently runs Minecraft with 8GB of RAM.

In the video, he explains that you can add or subtract from the two numbers in the second and third position of the command in order to allocate more or less RAM.

Anyway, I was just interested to hear people's opinions about this.

Have you tried it? If so, is it worth a try?

Does it work for you or does it perhaps not make any difference?

For those more computer savvy people, perhaps you can let us know why it should or shouldn't work.

Thanks. :)
Check out my Minecraft YouTube Channel: http://www.youtube.com/user/CrouchyLP

Register or log in to remove.

#2

flamingotrainer8
  • Location: United States
  • Minecraft: BloodStorm3

Posted 26 November 2011 - 01:23 PM

unnecessary, it already allocates 1.24GB and only uses 500 MB, that is pointless abuse on your computer.

#3

7n6
    7n6

    Zombie Killer

  • Members
  • 178 posts

Posted 26 November 2011 - 01:24 PM

i used a similar bat file to run MC with 1gb ram (my current pc only has 2 lol) and it works for me

#4

voidzm
    voidzm

    Zombie Killer

  • Members
  • 191 posts
  • Minecraft: voidzm

Posted 26 November 2011 - 02:01 PM

If you have any halfway decent amount of RAM, this is very much worth it.

The difference was between unplayablably slow and completely smooth for me.

#5

Dabezian
    Dabezian

    Out of the Water

  • Members
  • 7 posts

Posted 26 November 2011 - 08:52 PM

I set it to 2048 and 1024 (2GB) and immediately saw a difference. The game didn't have any skips in framerate when loading the map, which it used to always do. I think it will just smooth out the chunk loading and make it have less of an effect on your framerate. I'm not sure about loading new chunks though.

#6

TheAllCreator

Posted 03 December 2011 - 07:26 AM

This won't work for me. :(
I followed all of the instructions but it just tells me, cannot find main class: java. :(

#7

bobri
    bobri

    Lapis Lazuli Collector

  • Members
  • 1179 posts
  • Location: In the north of the south
  • Minecraft: bobri

Posted 03 December 2011 - 07:45 AM

Yeah i say go for it. I allocate 2 of my 6gb's to minecraft and it runs a lot smoother when things like explosions or things from large mods (buildcraft or similar) are running

No, it isn't butter, it is gold

Now that we have that sorted out, can you please leave, thanks?


#8

JellyFusion

Posted 03 February 2012 - 06:03 AM

View Postflamingotrainer8, on 26 November 2011 - 01:23 PM, said:

unnecessary, it already allocates 1.24GB and only uses 500 MB, that is pointless abuse on your computer.

But when I play I only use about 30-50% allocated memory of 1G and when I allocated 2G I got 100 extra fps but it could just be me lol no matter

#9

AngryFire

Posted 05 February 2012 - 05:18 PM

View PostJellyFusion, on 03 February 2012 - 06:03 AM, said:

But when I play I only use about 30-50% allocated memory of 1G and when I allocated 2G I got 100 extra fps but it could just be me lol no matter


My computer has 4 GB of ram, when I alocated 2 GB, it gets really hot then minecraft becomes laggy, and when I just set it to default (1GB)
seems to run smoother :P

#10

ashleybeshir

Posted 05 February 2012 - 07:04 PM

ı allocated 2 gb and did not notice any difference but ı think if ı use a higher texture ı might.
Posted Image

#11

ZakX11
    ZakX11

    Tree Puncher

  • Members
  • 23 posts

Posted 27 February 2012 - 02:48 PM

when I double click the .bat file it says
Could not create the java virtual machine
Posted Image

#12

Caiobrz
    Caiobrz

    Coal Miner

  • Members
  • 138 posts

Posted 27 February 2012 - 03:27 PM

Stop wasting time on pointless tweaks to such a simple game. You will only bug it.

For users with 64 bits machines with 64 bit JVM the game eventually enters the 64 bit address, and by eventually I mean it will seldom enter the 4Gb memory range.

For users that, on top of 64 bit architecture, use visual range modders, then it might be a good idea to allocate more memory to the game, though JVM and the OS will do that automatically, so no need to tweaks like these.

#13

7n6
    7n6

    Zombie Killer

  • Members
  • 178 posts

Posted 27 February 2012 - 04:12 PM

yeah, I run mc with 8gb of ram (I ahve 16gb) and I have no performance issues.

#14

Commador823

Posted 16 March 2012 - 10:56 AM

This looks really helpful.  My client crashes regularly

Posted Image


#15

Jensettiman
  • Location: Bergen, Hordaland, Norway
  • Minecraft: Jensettiman

Posted 20 April 2012 - 02:23 PM

If I open using the .bat, the memory is allocated, right? But if I open with Minecraft.exe? Will it still allocate the memory?

And can I just put the .bat into a server folder to make it work better?
I know the party was a disaster, but what do you expect when you put a bundle of TNT into your house and push the button?

#16

Hunter3216
  • Location: The Great White North
  • Minecraft: Hunter3216

Posted 04 May 2012 - 05:56 PM

I am on a 32 bit os and have 4Gs of ram and whenever I type in javaw -Xmx3072m -Xms1536m -jar "C:\Users\Chase\Desktop\run minecraft\minecraft.exe" It says "Could not create the java virtual machine." as well as. "A fatal Exception has occurred. Program will now exit." Please help me with this, I have over 40 mods and I want to run minecraft with 3Gs of ram so it won't lag as much. Thanks.
Posted Image

#17

gerbil
    gerbil

    Support Guru

  • Members
  • 4908 posts

Posted 04 May 2012 - 06:15 PM

You can't. On a 32bit OS you are limited to ~1.5G at most.

#18

Hunter3216
  • Location: The Great White North
  • Minecraft: Hunter3216

Posted 04 May 2012 - 07:12 PM

that sucks. Well thanks, at least I can have a bit more ram.
Posted Image

#19

da_maul
    da_maul

    Out of the Water

  • Members
  • 8 posts
  • Minecraft: brushgirl1

Posted 05 May 2012 - 08:45 AM

i'm pretty sure you can just use magic launcher to allocate more ram

exept it doesn't work for me

#20

bucky777
    bucky777

    Out of the Water

  • Members
  • 2 posts

Posted 12 May 2012 - 06:41 AM

How did he open up that typing window in the video to enter that information in?