Solved Add more memory

Discussion in 'Bukkit Help' started by 834000, Feb 11, 2018.

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


    I'm fairly new to running a bukkit server, but I've had it up for me and some friends to play on for the past couple days, and it keeps running out of memory. I'm trying to figure out how to add more memory without resetting the server but none of the tutorials and such I found worked.
    I'm not sure as to how I would go about this, but below is a picture of what run.bat looks like.
    My goal is to set it to 3GB instead of the default 1GB but I can't figure out how
    C__Users__834_Desktop_Server_run.bat - Notepad++ 2018-02-11 2_55_19 PM.png
  2. Offline


    Bukkit should automatically detect the 3GBs of unused ram and should use all of that memory. How do you know that bukkit is running out of memory?

    Either way, to force the server to increase the max amount of ram used, add "-Xms3G" before "-jar"
  3. Offline


    I'm not sure why it isn't using more memory, I have around 14gb available.
    And I know it's running out of memory because the console will say something along the lines of '[ERROR] Out of memory!' before the server closes.

    after I changed the run.bat to
    java -Xms3G -jar craftbukkit.jar
    The server will not start and the console will display this message
    C:\Users\_834\Desktop\Server>java -Xms3G -jar craftbukkit.jar
    Error occurred during initialization of VM
    Could not reserve enough space for 3145728KB object heap
    I have checked and I have 11.4GB of memory available so that can't be the problem
    Last edited: Feb 11, 2018
  4. Offline


    Try installing 64-bit java, use one of the links with x64.
  5. Offline


    If you want to dedicate 3G of RAM to the server I recommend using this in your run.bat:

    java -Xms3G -Xmx3G -jar craftbukkit.jar -o true

    This will set the min and max ram dedication
Thread Status:
Not open for further replies.

Share This Page