Jump to content




minecraft with more RAM?


  • You cannot reply to this topic
14 replies to this topic

#1 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 25 June 2013 - 09:47 AM

Hi folks,
Yea this isn't CC. I know.

My question:
How can I delete the java flag "-Xmx1024M" and add "-Xmx3072M"?
I've tried many ways, but nothing works.


#2 tonkku107

  • Members
  • 140 posts
  • LocationFinland

Posted 25 June 2013 - 09:47 AM

View PostFreack100, on 25 June 2013 - 09:47 AM, said:

Hi folks,
Yea this isn't CC. I know.

My question:
How can I delete the java flag "-Xmx1024M" and add "-Xmx3072M"?
I've tried many ways, but nothing works.
.bat file with javaw -Xmx3072m -Xms1024m -jar "location\Minecraft.exe"

#3 ShadowedZenith

  • Members
  • 95 posts
  • LocationComputational Soup of the Cloud

Posted 25 June 2013 - 09:52 AM

If you download the new launcher, it gives you the option to set your own -Xmx parameters. You just click the edit profile button, check the box beside Java Parameters and it'll let you modify it.

View Posttonkku107, on 25 June 2013 - 09:47 AM, said:

View PostFreack100, on 25 June 2013 - 09:47 AM, said:

Hi folks,
Yea this isn't CC. I know.

My question:
How can I delete the java flag "-Xmx1024M" and add "-Xmx3072M"?
I've tried many ways, but nothing works.
.bat file with javaw -Xmx3072m -Xms1024m -jar "location\Minecraft.exe"

I'm pretty sure he's talking about in the new launcher since it says:

View PostFreack100, on 25 June 2013 - 09:47 AM, said:

...
How can I delete the java flag "-Xmx1024M" and add "-Xmx3072M"?
...

With the new launcher, you no longer have to manually create a .bat file to set your max mem/min mem.

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 25 June 2013 - 10:12 AM

Or, you can use MultiMC to use the built in features to let you edit it AND have multiple instances with backwards compatibility...

#5 ShadowedZenith

  • Members
  • 95 posts
  • LocationComputational Soup of the Cloud

Posted 25 June 2013 - 10:19 AM

Multiple instances with backwards compatibility? You can create multiple profiles with the new launcher and, last I knew, Mojang was intending to release older versions and custom install directories per profile on the new launcher, so I'm not sure exactly what you mean with backwards compatibility... >.>

#6 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 25 June 2013 - 10:26 AM

Now I get a error
Error: could not crwate the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
^what the hell is this?^

#7 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 25 June 2013 - 10:28 AM

What does it look like? Java broke. Get used to it.
You probably didn't have enough RAM.

#8 ShadowedZenith

  • Members
  • 95 posts
  • LocationComputational Soup of the Cloud

Posted 25 June 2013 - 10:30 AM

View PostFreack100, on 25 June 2013 - 10:26 AM, said:

Now I get a error
Error: could not crwate the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
^what the hell is this?^

Did it give anymore information? Also, how much RAM does your system actually have?

#9 Sashi

  • Members
  • 6 posts

Posted 25 June 2013 - 10:35 AM

View Posttiin57, on 25 June 2013 - 10:28 AM, said:

What does it look like? Java broke. Get used to it.
You probably didn't have enough RAM.

Its because kids these days no nothing of Memory Budgeting.

#10 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 25 June 2013 - 10:38 AM

I don't think I haven't enough RAM.
I have 4 GB DDR3 RAM.

#11 Sashi

  • Members
  • 6 posts

Posted 25 June 2013 - 10:43 AM

View PostFreack100, on 25 June 2013 - 10:38 AM, said:

I don't think I haven't enough RAM.
I have 4 GB DDR3 RAM.

Yes but your system requires some of that RAM too.
Java won't let itself take too much RAM because it will compromise the system supporting it.

If you're running Windows 7 you'll need atleast 2 Gigs for Windows and all its children processes, not to mention other things like web browsers, irc, instant messengers, etc.
Thats why they suggets Minecraft be run at 1-1.5 Gigs.

#12 ShadowedZenith

  • Members
  • 95 posts
  • LocationComputational Soup of the Cloud

Posted 25 June 2013 - 10:43 AM

View PostFreack100, on 25 June 2013 - 10:38 AM, said:

I don't think I haven't enough RAM.
I have 4 GB DDR3 RAM.

Try setting it to 2048M. 2GB of RAM should be more than enough for Minecraft.


View PostSashi, on 25 June 2013 - 10:43 AM, said:

View PostFreack100, on 25 June 2013 - 10:38 AM, said:

I don't think I haven't enough RAM.
I have 4 GB DDR3 RAM.

Yes but your system requires some of that RAM too.
Java won't let itself take too much RAM because it will compromise the system supporting it.

I really doubt that only 4GB of RAM is the real cause if he has swap turned on. Unless he's on an old (pre-XP I do believe) version of Windows, the kernel supports virtual memory so, as long as a swap file is present and enabled, it'll drop things to it. I might be wrong, but I don't think Java really cares if it gets thrown into the swap file/can even tell if it gets thrown into the swap file.

#13 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 25 June 2013 - 10:52 AM

Yea, I'm using Win7.
OK, I'm trying 2Gb

#14 Sashi

  • Members
  • 6 posts

Posted 25 June 2013 - 10:52 AM

View PostShadowedZenith, on 25 June 2013 - 10:43 AM, said:

I really doubt that only 4GB of RAM is the real cause if he has swap turned on. Unless he's on an old (pre-XP I do believe) version of Windows, the kernel supports virtual memory so, as long as a swap file is present and enabled, it'll drop things to it. I might be wrong, but I don't think Java really cares if it gets thrown into the swap file/can even tell if it gets thrown into the swap file.

True but anything that runs from swap generally runs slower and if Java dumps MC in to swap in large chunks it will also have to reference it in large chunks. Lets face it, Minecraft is nothing but large everchanging data, swap hates that.

#15 ShadowedZenith

  • Members
  • 95 posts
  • LocationComputational Soup of the Cloud

Posted 25 June 2013 - 10:57 AM

View PostSashi, on 25 June 2013 - 10:52 AM, said:

View PostShadowedZenith, on 25 June 2013 - 10:43 AM, said:

I really doubt that only 4GB of RAM is the real cause if he has swap turned on. Unless he's on an old (pre-XP I do believe) version of Windows, the kernel supports virtual memory so, as long as a swap file is present and enabled, it'll drop things to it. I might be wrong, but I don't think Java really cares if it gets thrown into the swap file/can even tell if it gets thrown into the swap file.

True but anything that runs from swap generally runs slower and if Java dumps MC in to swap in large chunks it will also have to reference it in large chunks. Lets face it, Minecraft is nothing but large everchanging data, swap hates that.

Virtual memory tries to dump currently unused information to the swap file first, if I remember right, so chances of Minecraft, which would currently have it's information used, wwould likely get to stay in the RAM. Of course, anything being dumped to swap will cause the system to go slower simply because there's extra read/write usage on the harddrive at that time, taking away harddrive usage from Minecraft/the OS. That's why some people (myself included) have drives dedicated to swap just in case.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users