Problem dedicating more RAM to server

Discussion in 'Bukkit Help' started by josixx, Jul 25, 2014.

Thread Status:
Not open for further replies.
  1. I have 8GB RAM and i can't add more than 1GB RAM!
    config:
    java -Xmx3G -jar craftbukkit.jar -o true
    PAUSE

    Error message:
    E:\Pogramfiler\Servere\Mc server>java -Xmx3G -jar craftbukkit.jar -o true
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    E:\Pogramfiler\Servere\Mc server>PAUSE
    Press a keye to continue...

    RAM:
    I have 8gb, and almost 5gb free
     
  2. Offline

    Emerdisk

    Do you have a 32-bit windows computer? If yes, you can only have up to 1 gb D:
    If you have 64-bit but 32-bit java, uninstall java and install 64-bit java.
     
  3. Offline

    saiismad823

    josixx Also please send your batchfile command line.
    Also try it in MB -Xmx3072

    Emerdisk It shouldnt matter if he has 32 or 64-bit because we are not working with anymore than 3.9GB of RAM
     
  4. Offline

    Emerdisk

  5. Offline

    saiismad823

    Emerdisk Sorry my mistake. I have never run a server on 32-bit architecture so I assumed it has the same restrictions as windows 32-bit OS's have.
     
  6. Offline

    Emerdisk

    No problem XD
    I thought it was like that for 32-bit too before :D
     
  7. Offline

    LHammonds

    #1 - Make sure your operating system is 64-bit. If not, you are outta luck and wasting all that extra RAM over 3GB (1GB is just for Windows). You can tell if you have a "C:\Program Files (x86)" folder.

    #2 - Make sure you have a 64-bit version of Java installed. You can both 32-bit and 64-bit versions installed at the same time (and is even recommended).

    #3 - Make sure you are calling the 64-bit version of Java in your batch file (because the 32-bit version is limited). The example below assume Java 1.7 which is what's currently recommended (not 1.6 or 1.8) and the current version is Oracle Java JRE 1.7.0 Update 65

    start-server.bat
    Code:
    @ECHO OFF
    CD /D C:\Craftbukkit\
    "%ProgramFiles%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx3096M -Xms3096M -jar craftbukkit.jar nogui
    
    LHammonds
     
  8. @LHammonds
    I have a 64 bit pc and ran 32 bit Java, so i had to download 64 bit java and use your .bat config
    Now the server runs with 3096 mb of ram
    Thank you!
    @Emerdisk
    Thanks for the help :D
     
Thread Status:
Not open for further replies.

Share This Page