Jump to content

Help
Latest News Article

Allocating More Memory To Java [Windows]


533 replies to this topic

#41

  • Minecraft: shinji257

Posted 01 June 2011 - 08:41 PM

View PostGolldenFalcon, on 01 June 2011 - 08:19 PM, said:

Ok, So where do I find my RAM? Because if you are correct then I have absolutly no idea what my RAM space is...

The quickest way is to check system properties. You can get there by clicking Start then right-clicking on Computer or My Computer (depends on the OS) then choosing properties. It will be listed on that screen.

Register or log in to remove.

#42

  • Minecraft: shinji257

Posted 01 June 2011 - 08:42 PM

View PostSSkid, on 01 June 2011 - 11:25 AM, said:

this is soo full of win!

but, i need to install both 32 bit and 64 bit of java since im using 32 ibt (only and only have 32 bit) firefox browser..
here how it goes,
1st, uninstalled everything jre6u25 64bit and 32bit
2nd, runccleaner clear all registry
3rd, restart
4th, install jdk7 64bit, done tweaking all those control panel
5th, try play minecraft.jar.. Working hooray!!
6th, need to use java on firefox
7th, install jdk7 32bit
8th, try play minecraft.jar..
Error: Could not create Java Virtual Machine.
Error: A fatal exception has occured. Program will exit.
9th, come to this forum..
10th, I need your assist please..

Running on,
ASUS X42Jr
8GB Ram
1GB ATi Mobility Radeon HD 5470
Windows 7 homePremium SP1 64bit

thanks in advance

You have to install the 64-bit version after installing the 32-bit one. Unfortunately the order does matter here.

#43

    SSkid

    Coal Miner

  • Members
  • 101 posts
  • Location: Malaysia
  • Minecraft: wrinkletit

Posted 01 June 2011 - 11:50 PM

View PostPhantomGamers, on 01 June 2011 - 06:48 PM, said:



Curious, why play in browser with that set up?
Your PC is quite good, I would just play in downloadable client if I were you.


it not playing minecraft in browser, i hate play minecraft in browser, its playing other flashgames, and some web applications

View Postshinji257, on 01 June 2011 - 08:42 PM, said:

You have to install the 64-bit version after installing the 32-bit one. Unfortunately the order does matter here.

tried tht.. unfortunately.. still the same,
the good thing is when i install only 32bit java, i can play both minecraft and use my java based apps in firefox.

so its just tht minecraft dont get the full use of 64bit..
Currently Supporting a massive growing;
Posted Image

#44

  • Minecraft: shinji257

Posted 02 June 2011 - 11:05 AM

View PostSSkid, on 01 June 2011 - 11:50 PM, said:

it not playing minecraft in browser, i hate play minecraft in browser, its playing other flashgames, and some web applications



tried tht.. unfortunately.. still the same,
the good thing is when i install only 32bit java, i can play both minecraft and use my java based apps in firefox.

so its just tht minecraft dont get the full use of 64bit..

Actually it should. Minecraft automatically uses the 64-bit one when available.

#45

    Lymdil

    Tree Puncher

  • Members
  • 17 posts
  • Minecraft: Lymdil

Posted 02 June 2011 - 01:43 PM

I'm using LB Photo Realsim 128x and I followed your 'installation' intructions but I still get the same error message as before. Are there any oppertunities I can avoid getting this error?
Thanks and hope you are answering soon,
Lymdil

P.S.: I just need another (I guess higher) value for the parameter.
P.S.2: I fixed it on my own, thanks for your guide!

Posted Image

League of Legends Player

#46

  • Minecraft: Antonater

Posted 02 June 2011 - 05:39 PM

it says the java thing i downloaded is not a valid win 32 application, what does that mean?

Also could allocating more memory to this mean you have trouble hosting a server where it worked befoe?

#47

Posted 02 June 2011 - 11:15 PM

I have 4gb Ram, and 1TB space, on a vista win32 computer with ATI Radeon 5750 HD card, and still this fix is not working for me :(

any advice ?
I have done all of the above, and tweaked, reinstalled minecraft many times. could it be a problem with my mods ?, I am using LB photo realism 256x256 with SPC and TooManyItems, It worked with LB photo realism before the 1.6.6 update :S

#48

  • Minecraft: shinji257

Posted 03 June 2011 - 01:58 AM

For 32-bit OS you won't be able to use the setting suggested in the ops post. 32-bit Java is limited to about a 1.5GB allocation. Try the following ones instead. Do the first one and if it doesn't work try the second.

First option:
-Xincgc -Xmx1536m

Second option:
-Xincgc

#49

Posted 03 June 2011 - 08:39 AM

View Postshinji257, on 03 June 2011 - 01:58 AM, said:

For 32-bit OS you won't be able to use the setting suggested in the ops post. 32-bit Java is limited to about a 1.5GB allocation. Try the following ones instead. Do the first one and if it doesn't work try the second.

First option:
-Xincgc -Xmx1536m

Second option:
-Xincgc

Thanks but it seems no avail, I'll have to stick to normal resolution textures for now, doesn't seem to have any problems.

#50

  • Minecraft: ScuttlesLB

Posted 03 June 2011 - 03:33 PM

View Postryann122, on 02 June 2011 - 11:15 PM, said:

I have 4gb Ram, and 1TB space, on a vista win32 computer with ATI Radeon 5750 HD card, and still this fix is not working for me :(

any advice ?
I have done all of the above, and tweaked, reinstalled minecraft many times. could it be a problem with my mods ?, I am using LB photo realism 256x256 with SPC and TooManyItems, It worked with LB photo realism before the 1.6.6 update :S

Reinstall a 64bit version of windows. You are wasting a GB of RAM by using 32bit. Anything above 3GB pretty much requires 64bit to actually be able to use the RAM.
Posted Image
Play some League of Legends with me sometime: http://signup.league...01eee2275075845

#51

Posted 03 June 2011 - 04:29 PM

View PostScuttles, on 03 June 2011 - 03:33 PM, said:

Reinstall a 64bit version of windows. You are wasting a GB of RAM by using 32bit. Anything above 3GB pretty much requires 64bit to actually be able to use the RAM.

Unfortunately that is out of the question for now.
when late june comes along it may be possible when I go up to Windows 7 and put a second HDD in.

#52

  • Location: South Africa
  • Minecraft: Kill3rism

Posted 03 June 2011 - 06:55 PM

For some reason, this does not work for me, I hve JDK v1.6 (update 25), I have followed you instructions and I am still getting the "out of mmory" error whenever I use an HD texture pack (LB Photo Realism)

I have:
Windows 7 Professional 32bit
4GB RAM
Intel i5 CPU
Geforce GTX 560 TI
1.5TB HDD

Edit: I have increased my allocated memory on Minecraft to 1024M.

I did it by downloading the minecraft.jar (launcher), put it into .minecraft, made a shortcut to it, and made the target to this:

"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -cp "C:\Users\YOUR USERNAME\AppData\Roaming\.minecraft\minecraft_2.jar" net.minecraft.LauncherFrame

Problem is though, I cannot increase the allocated memory any further otherwise Minecraft wont even start.

Any help on increasing it to 2048M?

#53

  • Location: Behind you
  • Minecraft: Super_Walrus

Posted 04 June 2011 - 11:37 PM

i have a problem, when i try to change the runtime peramiters it says "unable to change browser settings". does that mean something? P.S. i have a 32 bit OS and 4gbs of ram.
Posted Image ssssss
thatsssssss a very nice ssssssignature you have there

#54

  • Minecraft: shinji257

Posted 05 June 2011 - 02:59 AM

View PostKill3rism, on 03 June 2011 - 06:55 PM, said:

For some reason, this does not work for me, I hve JDK v1.6 (update 25), I have followed you instructions and I am still getting the "out of mmory" error whenever I use an HD texture pack (LB Photo Realism)

I have:
Windows 7 Professional 32bit
4GB RAM
Intel i5 CPU
Geforce GTX 560 TI
1.5TB HDD

Edit: I have increased my allocated memory on Minecraft to 1024M.

I did it by downloading the minecraft.jar (launcher), put it into .minecraft, made a shortcut to it, and made the target to this:

"C:\Program Files\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -cp "C:\Users\YOUR USERNAME\AppData\Roaming\.minecraft\minecraft_2.jar" net.minecraft.LauncherFrame

Problem is though, I cannot increase the allocated memory any further otherwise Minecraft wont even start.

Any help on increasing it to 2048M?

1536M is the max you will be able to set it to. That's about the limit that 32bit Java will handle. It's a technical limit and partially has to due with the fact that 32bit applications can only allocate 2GB total but Java itself needs some of that too.

#55

Posted 05 June 2011 - 11:50 AM

I had to tinker with the Java parameters for a while, but I got it now :D
I am using -Xincgc -Xmx1536M -Xms1536M -cp
at the moment and its running ok!

#56

Posted 05 June 2011 - 12:32 PM

Ok here's my problem,
running minecraft WITHOUT any texture pack, just simple default, MCpatcher UNpatched,
my system continue's to crash when entering furnaces/inventory/ect.
I tried allocating java memory as posted by OP (fantastic work btw), when i select view in java section of java config nothing happens, it just #$!^# does nothing, my specs are posted below, if you can help I will be eternally in your debt.
____________________________________________
Operating System:

Windows 7 Ultimate (build 7600)
Install Language: English (United States)
System Locale: English (United States)
____________________________________________
System model:

Acer Aspire T690 R01-B3
System Serial Number: XXXXXX-XXXXXXXXX
Enclosure Type: Desktop
____________________________________________
Processor a:

3.00 gigahertz Intel Pentium D
16 kilobyte primary memory cache
2048 kilobyte secondary memory cache
64-bit ready
Multi-core (2 total)
Not hyper-threaded
____________________________________________
Memory Modules c,d:

2048 Megabytes Usable Installed Memory

Slot 'A0' has 1024 MB
Slot 'A4' has 1024 MB
____________________________________________
Display:

NVIDIA GeForce GT 220 [Display adapter]
____________________________________________

#57

    Sivos

    Newly Spawned

  • Members
  • 1 posts

Posted 06 June 2011 - 06:06 AM

Okay, I can't seem to get this working. I have 8GB of RAM 64-bit computer, but the game can only run on 32-bit Java, which is weird (I tried both). I tried using all of those codes you posted, but the game either crashes or it pops up that in game error saying it doesn't have enough memory. The texture pack I'm trying to use is LB Photo Realism Pack if that helps any.

#58

  • Location: UK
  • Minecraft: Ssoulle

Posted 06 June 2011 - 08:01 PM

Has anyone got a backup of the Windows 7 Java 7 JDK 64 bit install file ? The one on Java appears to have vanished from the site. Looking to test Minecraft with this pack.

#59

  • Minecraft: shinji257

Posted 07 June 2011 - 02:59 AM

Hey guys! The op for the MCPatcher thread found out why you may get Out of Memory and white block issues with his patcher. Here is a good way of looking at it.

Minecraft gets allocated in 3 parts.

1) Interpreter (Java itself)
2) Java Heap (Memory for Minecraft)
3) Texture Memory (All the stuff we see)

On 32-bit Java this is capped at 2GB due to an OS limit. So if you set the Java heap too high then that leaves less for textures and the interpreter itself. In that event you can get out of memory and white box problems. Lowering your heap cap works to resolve the issue. In other words if you are getting Out of Memory errors or white box issues then reduce the -Xmx setting and drop the -Xms one. That op on that thread got it working fine with -Xmx768m and that was with HD textures and on 32-bit Java.

I had done alot of research when someone over there mentioned that the sole act of changing from 32-bit to 64-bit Java resolved the issue for them. The reason why 64-bit version takes care of it is because that 2GB application limit disappears and the actual limit is far higher than we have installed ram in 99% of cases right now. 8TB (yes Terabytes) to be exact.

MSDN Technical article concerning memory limits in Windows: http://msdn.microsof...8(v=vs.85).aspx

Proof that less is more here.
Tested: 32-bit Java, HD Patched, x256 LB Photo Realism texture pack
Commandline: "%programfiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -verbose:gc -Xmx768m -jar MineCraft.exe
Picture shows running with 768MB heap allocation. 96% allocated and 53% in use.

Note that the command was structured to force 32-bit Java use on 64-bit OS but the same 2GB barrier applies which makes the test valid.

Image:
Posted Image

#60

  • Minecraft: shinji257

Posted 07 June 2011 - 03:00 AM

View PostSsoulle, on 06 June 2011 - 08:01 PM, said:

Has anyone got a backup of the Windows 7 Java 7 JDK 64 bit install file ? The one on Java appears to have vanished from the site. Looking to test Minecraft with this pack.

This should work. If it doesn't let me know and I'll get a copy on my hosting space for you.

http://download.orac...windows-x64.exe