(Seems that this has been fixed in newer versions of Synapse)
To access windows Environment Variables:
Windows 7:
1. Press Windows key + pause/break (top right keyboard usually
2. Click Advanced System Settings (far left)
3. Click Environment Variables (bottom)
Windows 8:
1. Windows key + W (search settings)
2. Search for environment variable
If you have a variable in Windows Environment Variables called _JAVA_OPTIONS, just delete it and it should fix the issue, else.
If you have Razer Synapse installed, usually comes with any Razer products it will attach an invisible Environment variable of _JAVA_OPTIONS: -Xmx 512M.
Currently as Razer are still working on a patch to fix the bug (Work on fix confirmed by Razer 23/12/2014) you have a few options which are all pretty ugly.
1. Set your own _JAVA_OPTIONS variable:
Navigate to your Environment Variables window
click New... name: _JAVA_OPTIONS, value: (designate your Xmx and Xms values here) e.g. -Xmx1G -Xms1G
Xms is your starting heap size, Xmx is your maximum heap size. Debates rage on about what to do with these, just try a few settings and see what works best for you.
2. You can write a batch file to set a system/user variable and run minecraft.
Check out this http://www.robvanderwoude.com/battech.php if you're interested in batch files
Or use this:
@echo off
set _JAVA_OPTIONS=-Xmx2G -Xms2G
java -jar Your minecraft or server jar.jar
PAUSE
Replace Xmx and Xms values with your desired allocations and save the .bat file to where you are running the server from.
to use this with single player change the line java -jar server.jar to:
java -jar Minecraft.exe
then put the batch file in the same place as Minecraft.exe (the normal launcher with the cube icon)
It's possible you may have to fiddle around with the setx command to make permanent changes to environment variables but the above batch file should work by overriding the _JAVA_OPTIONS variable for the duration of the CMD session
3. You can uninstall Razer synapse (this option sucks but yeah).
Warning!!, setting your own environment variable for _JAVA_OPTIONS: will set those options to any java application that you run as such you may want to delete the variable after you finish playing.
(Seems that this has been fixed in newer versions of Synapse)
To access windows Environment Variables:
1. Press Windows key + pause/break (top right keyboard usually
2. Click Advanced System Settings (far left)
3. Click Environment Variables (bottom)
Windows 8:
1. Windows key + W (search settings)
2. Search for environment variable
If you have a variable in Windows Environment Variables called _JAVA_OPTIONS, just delete it and it should fix the issue, else.
If you have Razer Synapse installed, usually comes with any Razer products it will attach an invisible Environment variable of _JAVA_OPTIONS: -Xmx 512M.Currently as Razer are still working on a patch to fix the bug (Work on fix confirmed by Razer 23/12/2014) you have a few options which are all pretty ugly.1. Set your own _JAVA_OPTIONS variable:
Navigate to your Environment Variables window
click New... name: _JAVA_OPTIONS, value: (designate your Xmx and Xms values here) e.g. -Xmx1G -Xms1G
Xms is your starting heap size, Xmx is your maximum heap size. Debates rage on about what to do with these, just try a few settings and see what works best for you.
2. You can write a batch file to set a system/user variable and run minecraft.
Check out this http://www.robvanderwoude.com/battech.php if you're interested in batch files
Or use this:
set _JAVA_OPTIONS=-Xmx2G -Xms2G
java -jar Your minecraft or server jar.jar
PAUSE
Replace Xmx and Xms values with your desired allocations and save the .bat file to where you are running the server from.
to use this with single player change the line java -jar server.jar to:
java -jar Minecraft.exe
then put the batch file in the same place as Minecraft.exe (the normal launcher with the cube icon)
It's possible you may have to fiddle around with the setx command to make permanent changes to environment variables but the above batch file should work by overriding the _JAVA_OPTIONS variable for the duration of the CMD session
http://technet.microsoft.com/en-us/library/cc755104.aspx for information on SETX
3. You can uninstall Razer synapse (this option sucks but yeah).
Warning!!, setting your own environment variable for _JAVA_OPTIONS: will set those options to any java application that you run as such you may want to delete the variable after you finish playing.
It is possible that programs other than Synapse could cause this issue, if that is the case the same workarounds should work.