Java Could not reserve enough space for object heap error

后端 未结 8 1793
闹比i
闹比i 2020-12-08 10:56

I have Java7 running on 32-bit Windows and 4 GB RAM, but:

java -Xmx4G -Xms4G -jar Minecraft.jar 
java -Xmx3G -Xms3G -jar Minecraft.jar 
java -Xmx2G -Xms2G -j         


        
相关标签:
8条回答
  • 2020-12-08 10:59

    Go to StartControl PanelSystemAdvanced system settingsadvanced(tab)Environment VariablesSystem VariablesNew:

    Variable name: _JAVA_OPTIONS
    Variable value: -Xmx512M
    
    0 讨论(0)
  • 2020-12-08 11:04

    This was occuring for me and it is such an easy fix.

    1. you have to make sure that you have the correct java for your system such as 32bit or 64bit.
    2. if you have installed the correct software and it still occurs than goto

      control panelsystemadvanced system settings for Windows 8 or

      control panelsystem and securitysystemadvanced system settings for Windows 10.

    3. you must goto the {advanced tab} and then click on {Environment Variables}.
    4. you will click on {New} under the <system variables>
    5. you will create a new variable. Variable name: _JAVA_OPTIONS Variable Value: -Xmx512M

    At least that is what worked for me.

    0 讨论(0)
  • 2020-12-08 11:04

    I had this problem. I solved it with downloading 64x of the Java. Here is the link: http://javadl.sun.com/webapps/download/AutoDL?BundleId=87443

    0 讨论(0)
  • 2020-12-08 11:07

    Double click Liferay CE Server -> add -XX:MaxHeapSize=512m to Memory args -> Start server! Enjoy...

    It's work for me!

    0 讨论(0)
  • 2020-12-08 11:13

    this is what worked for me (yes I was having the same problem) were is says something like java -Xmx3G -Xms3G put java -Xmx1024M so the run.bat should look like java -Xmx1024M -jar craftbukkit.jar -o false PAUSE

    0 讨论(0)
  • 2020-12-08 11:14

    4gb RAM doesn't mean you can use it all for java process. Lots of RAM is needed for system processes. Dont go above 2GB or it will be trouble some.

    Before starting jvm just check how much RAM is available and then set memory accordingly.

    0 讨论(0)
提交回复
热议问题