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
@834000 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"
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. [Edit] after I changed the run.bat to java -Xms3G -jar craftbukkit.jar PAUSE 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
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 PAUSE This will set the min and max ram dedication