1

Allocating more ram doesn't work

Dublii's Avatar Dublii11/24/14 7:42 pm
1 emeralds 1.7k 14
11/24/2014 8:32 pm
PumpkinExpert's Avatar PumpkinExpert
I now am using version 1.8, I can play for about 1-2 minutes before the game starts freezing. I changed texture packs back to default and lowered all options to the minimum just to see if that helped. It did not. I then pressed F3 and realized that the memory was maxing out every time it froze and that memory allocation was at 100% of 499M. I looked over several tutorials and each one makes it seem so easy yet this is where I am having a problem.
Using the launcher, (version 1.5.3), I tried to edit a profile by selecting JVM Arguments like all the tutorials say to do. But when I put in -Xmx2048M -Xms2048M it gives me the message:

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M


If I try to just put -Xmx2048M, the game will start, but when I press F3 it shows that memory allocation was at 100% of 499M. I can't allocate additional memory to avoid minecraft from freezing and I would like to know if anyone has any suggestions as to what to do.
I apologize if this is the wrong forum for this, but I've been trying to figure out how to fix this for a couple of days now and I don't know where to go next.
Posted by Dublii's Avatar
Dublii
Level 1 : New Miner
0

Create an account or sign in to comment.

14

1
11/24/2014 8:29 pm
Level 8 : Apprentice Ranger
COOOCOOO123
COOOCOOO123's Avatar
Found a list of people who found solutions to this problem here:




You're welcome, btw.
1
11/24/2014 8:32 pm
Level 6 : Apprentice Network
PumpkinExpert
PumpkinExpert's Avatar
Aww yeah, that totally helps. It's let me google that for you which sends you back to this page...
1
11/24/2014 8:28 pm
Level 6 : Apprentice Network
PumpkinExpert
PumpkinExpert's Avatar
Open Minecraft ( make sure this is the only one ) go to "Edit Profile" on the bottom there is a "JVM Agruments". Depending on how much ram you have on your computer is what you should set it to. If you're using mac/Linux not too sure how to check ram on the computer. But if you're using windows go to start right click on computer then click properties should pop open a window showing your ram. If you have 4GB+ you should be okay to run Minecraft on 2GB. Now go back into your Minecraft replace what ever is on the right of "JVM Agruments" with this: -Xmx2G
Done deal, should work fine.
1
11/24/2014 8:24 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
I think I may have found the problem. In my snooper settings Theres is 2 JVM arguments:
jvm_agrs[1] -Xmx2048M
jvm_agrs[2] -Xmx512M

why would there be 2 of them, isnt the 512M stopping the 2048M to work? Could that be why the allocation of memory is always 512M even if I added 2048M.
1
11/24/2014 8:07 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
Yes I know Xmx is the max and Xms is the min and no matter what amount I use it gives me:

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M


And whats the batch file you were talking about?
1
11/24/2014 8:05 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
Yes I tried it and yes I googled it, they all concluded with them having 32-bit version of java with 64-bit operating system
1
11/24/2014 8:02 pm
Level 44 : Master Gent
Sir_Awesomness
Sir_Awesomness's Avatar
Xmx is the max amount, xms is the minimum (tbh, I'm not sure why a minimum exists), it doesn't make sense for xmx to equal xms.

If possible, use more.

Also, I wonder if it matters what amount you use in the batch file. I made mine the same but am not sure if it makes a difference, I now know that the one in versions is the one to use.
1
11/24/2014 7:56 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
-Xmx2048M -Xms2048M is the JVM argument. It still doesnt work if I change around the numbers
1
11/24/2014 8:00 pm
Level 33 : Artisan Engineer
RoboShadow
RoboShadow's Avatar
Did you try? Also, have you googled this issue? There's a guide to it on the MCForums and probably lots of other places.
1
11/24/2014 7:54 pm
Level 33 : Artisan Engineer
RoboShadow
RoboShadow's Avatar
I mixed up those numbers I believe. Try setting it to -Xmx2048M -Xms1024M
1
11/24/2014 7:51 pm
Level 38 : Artisan Programmer
deadrecon98
deadrecon98's Avatar
What are your exact runtime arguments?
1
11/24/2014 7:50 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
I tried it but this message pops up:

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M
1
11/24/2014 7:48 pm
Level 33 : Artisan Engineer
RoboShadow
RoboShadow's Avatar
Set it to something like
-Xmx1024M -Xms2048M
or
-Xmx2048M -Xms3072M
1
11/24/2014 7:46 pm
Level 1 : New Miner
Dublii
Dublii's Avatar
PC specs:
AMD FX-6300 3.5gHz (CPU)
8.00 GB (RAM)
AMD HD7850 Series (GPU)
64-bit Operating System (yes I have 64-bit version of java)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome