Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap

Discussion in 'Bukkit Help' started by nerfman500, Dec 5, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    nerfman500

    Error occurred during initialization of VM
    Could not reserve enough space for 2097152KB object heap
    Any help I tried "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xms2048m -Xmx2048m
    I tried the ram And nothing, Any help?
    Specs
    i5 6400
    16gb ram
    gtx 1080
    850w power supply
    and java
    jre1.8.0
     
  2. Offline

    Captain5817

    Change: -Xms2048m -Xmx2048m
    To: -Xmx3072m -Xmx3072m

    Else Change to: -Xmx4096m -Xmx4096m
     
  3. Offline

    nerfman500

    Tried both this is what i got for second
    "Invalid maximum heap size: -Xmx4096m
    The specified size exceeds the maximum representable size.
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit."
    And the fist was same as ever
     
  4. @nerfman500
    What if you just don't specify Xmx and Xms at all?
     
  5. Offline

    oceantheskatr

    Do you have 64-bit Windows? If so, you need to uninstall your Java and install 64-bit Java. If you're on 32-bit, try changing -Xms2048m -Xmx2048m to -Xms512m -Xmx2048m
     
Thread Status:
Not open for further replies.

Share This Page