Sign in to follow this  
Kritten

Cannot allocate more ram to Minecraft

Recommended Posts

Been at this for a couple of hours. Tried re-installing Java with no avail, Control Panel>Java seems to do nothing when I change it, and when I launch the regular Minecraft launcher trying to allocate more ram with the Xmx Xms arguments, I get this error: 

 

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M
 
Windows 7 OS, JRE 1.8.0_20 + 1.7.0_67, and yes, I already tried Googling it.
 
EDIT: Here's the pastebin, for any of you interested in it; http://pastebin.com/Dkspakhf 

And I did 'java -version' on cmd, and guess what: "Picked up _JAVA_OPTIONS: -Xmx512M" haunted me there too.
 
EDIT 2: Solved.
Edited by Kritten

Share this post


Link to post
Share on other sites

You either:

Don't have enough RAM (its physical hardware) installed

and/or arn't using 64Bit java

 

Control Panel>System and Security>System; says 8GB installed

Problem still occured after re-installed java, as stated above, ensuring I installed Java 64-bit. 

Problem also persisted before I re-installed java.

Edited by Kritten

Share this post


Link to post
Share on other sites

Post a launcher log. It'll provide much more insight than you may think ;)

 

Getting Launcher Logs
* Run Technic Launcher
* Click on the Cog icon located on the top right of the launcher
* Click on the "Logs" button
* Provide relevant log files

-----------------------------------------------------------------------------------------

Pasting Logs
Use one of the following methods to show us your log files:
* Attach file to posting
* Use http://pastebin.com and paste the resulting URL in your post
* Use http://paste.ubuntu.com and paste the resulting URL in your post

For overly sized files, attaching or using the above URLs may not work, you can use one of the following for these types of cases
* http://mediafire.com
* http://dropbox.com

Share this post


Link to post
Share on other sites

May not be public to view, but still downloadable :P

 

One execution of it ran Java 7u21 - which is outdated - suffered from the mentioned _JAVA_OPTIONS issue

[B#439] 2014/09/05 19:27:59 [INFO]  2014-09-05 19:27:59 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_21, running on Windows 7:amd64:6.1, installed at C:Program FilesJavajre7

Another one ran Java 8u20, which has a known issue with it and is what you're hitting with Java 8u20.

 

The issue, related to _JAVA_OPTIONS, thats overwriting the ram assigned via launcher - which btw is recognizing that you have that amount of RAM. And to fix this:

 

Click start

Enter "environment"

Click "edit environment variables for your account"

Remove "_JAVA_OPTIONS" from top and bottom lists. A reboot may be necessary.

Initial heap size set to a larger value than the maximum heap size

That, as you mentioned in your first post is a direct result of the -Xmx512M issue btw. -Xms being greater than -Xmx causes this error to be thrown, because you cannot start with 2G of ram but limit max RAM to 1G, for example (and hopefully obviously apparent)

 

Edit: Typos...

Edited by Kalbintion

Share this post


Link to post
Share on other sites

"Liking" a post is essentially the sites rep system. The more posts that are liked of a certain person, the higher their rating is on their profile (top right is where you can see this number on their profile) - not sure 100% on the intricacies of how the liked posts influence the number, if its 1 to 1, but yeah. Liking posts is their rep system more or less.

 

Edit: Typo

Edited by Kalbintion

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this