I just upgraded the RAM in my server in order to run bukkit smoother, however I can't seem to get java to allocate more than 1.5 gigs of ram to it. I'm using a batch file to start the server as directed and the contents are as follows: @echo off "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1500M -Xmx1500M -jar craftbukkit-0.0.1-SNAPSHOT.jar pause Before I had 4 gigs, I've upgraded to 8. If I try to run it with more than 1.5 gigs it says "Cannot reserve enough space for object heap". If I set it really high to 4 gigs, which is what I want, it says "The specified size exceeds the maximum representable size." Is there any way to fix this or just let java allocate memory as it's needed, or did I just upgrade the ram for no reason? Server specs (got this for nothing and I'm running it out of my basement): Intel E8400 @ 3 Ghz 8 GB PC6400 DDR2 160 GB hard drive Windows 7 Pro
Java ram allocation size needs to be contiguous memory. You probably do not have enough to do a contiguous allocation. Java also has a cap on memory it can allocate between its stack and application. Also check if your java build is 32 or 64bit. Lastly. You have a nice spec server there. Why is it running windows. seriously switch to linux or virtual (something like ESXI). Get some good use out of the hardware.
I was using the 32 bit version of java, I spent some time looking around and figured out that I had to use IE 64 bit to download the 64 bit version. I'm now able to start it with 4 gigs allocated. Thanks for the help! Also, I would run the server off linux, but I'm completely ignorant when it comes to linux. I've only worked with redhat way back in college 6 years ago.
Its never too late to learn. And also if you do try out virtual servers it means you can setup your windows vm to run what you currently have and then learn on linux on another virtual machine.
Check this out - might help you. http://forums.bukkit.org/threads/ho...kkit-craftbukkit-server-running-java-x64.598/