So today I upgraded to 16 gigs of ram and decided to bump minecraft to 4 gigs of ram. Updated my 64 bit java and runtime enviroment and all that fancy stuff. added in the line to the JVM Argument:
-Xmx4G -Xms4G
but now the game will not load. the launcher will dissaper for a millisecond and then reappear. this happened with any ram amout I type in, including 1gb ram. if I uncheck the JVM box, the game works fine.
heres the error log:
[04:21:26 INFO]: Launching game
[04:21:26 INFO]: Unpacking natives to C:\Users\Andy\AppData\Roaming\.minecraft\versions\1.7.9-OptiFine_HD_U_D2\1.7.9-OptiFine_HD_U_D2-natives-30390365867145
[04:21:27 INFO]: Launching in C:\Users\Andy\AppData\Roaming\.minecraft
[04:21:27 INFO]: Half command: C:\Program Files\Java\jre8\bin\javaw.exe -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4096M -Xms4096M -Djava.library.path=C:\Users\Andy\AppData\Roaming\.minecraft\versions\1.7.9-OptiFine_HD_U_D2\1.7.9-OptiFine_HD_U_D2-natives-30390365867145 -cp C:\Users\Andy\AppData\Roaming\.minecraft\libraries\optifine\OptiFine\1.7.9_HD_U_D2\OptiFine-1.7.9_HD_U_D2.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.7\launchwrapper-1.7.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.3.1\vecmath-1.3.1.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.0.10.Final\netty-all-4.0.10.Final.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\15.0\guava-15.0.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.13\authlib-1.5.13.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.0-beta9\log4j-core-2.0-beta9.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.1\lwjgl-2.9.1.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.1\lwjgl_util-2.9.1.jar;C:\Users\Andy\AppData\Roaming\.minecraft\libraries\tv\twitch\twitch\5.16\twitch-5.16.jar;C:\Users\Andy\AppData\Roaming\.minecraft\versions\1.7.9-OptiFine_HD_U_D2\1.7.9-OptiFine_HD_U_D2.jar net.minecraft.launchwrapper.Launch
[04:21:27 INFO]: Looking for orphaned versions to clean up...
[04:21:27 INFO]: Client> Error occurred during initialization of VM
[04:21:27 INFO]: Client> Initial heap size set to a larger value than the maximum heap size
[04:21:27 INFO]: Client> Picked up _JAVA_OPTIONS: -Xmx512M
[04:21:27 ERROR]: Game ended with bad state (exit code 1)
[04:21:27 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[04:21:27 INFO]: Looking for old natives & assets to clean up...
[04:21:27 INFO]: Deleting C:\Users\Andy\AppData\Roaming\.minecraft\versions\1.7.9-OptiFine_HD_U_D2\1.7.9-OptiFine_HD_U_D2-natives-30390365867145
help would be much apperciated as the game runs poorly with just 1 gb of ram
[04:21:27 INFO]: Client> Picked up _JAVA_OPTIONS: -Xmx512M
You have an environment variable that is setting the max heap size to 0.5G, any arguments that you put in the JVM box that try to set Xms higher than that will cause the error you have.
You'll need to edit your environment variables and delete JAVA_OPTIONS
I was wondering where that came from as that part was confusing me. Ok I went out and changed that and it still gave me an error. so I tried the 1 gig argument and it worked. tried for 2 and it worked. 3 then worked. And when I went and did 4, it suddenly worked. Dont know how that happened, but its fixed.
Thanks!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-Xmx4G -Xms4G
but now the game will not load. the launcher will dissaper for a millisecond and then reappear. this happened with any ram amout I type in, including 1gb ram. if I uncheck the JVM box, the game works fine.
heres the error log:
help would be much apperciated as the game runs poorly with just 1 gb of ram
You have an environment variable that is setting the max heap size to 0.5G, any arguments that you put in the JVM box that try to set Xms higher than that will cause the error you have.
You'll need to edit your environment variables and delete JAVA_OPTIONS
Thanks!