Perhaps it's my inexperience with java, but when I type /memory I get the following: Maximum memory: 6,107 MB Allocated memory: 1,037 MB Free memory: 352 MB screenshot: http://puu.sh/uais I'm running this on a CentOS box with 12GB of ram on it and I'd like to give MC at least 6GB of that to play with. What am I missing? ps: my startup command: Code: java -Xmx6G -XX:ParallelGCThreads=8 -server -Xincgc -XX:+UseConcMarkSweepGC -XX:+UsePaNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=6G -XX:LargePageSizeInBytes=4m -jar craftbukkit.jar nogui
This Code: -Xmx6G is telling Java to only use 6GB, which is exactly what you're reporting, so it's working exactly as one would expect
Code: Free memory: 352 MB We've actually hit our memory limit and it crashed the server. This tells me that the Free memory is a problem which I can only assume means that java can't get more than 1GB of ram.
You misunderstand it. "Maximum memory: 6,107 MB" Means that the server can only have 6GB RAM max. "Allocated memory: 1,037 MB" Means that of the 6GB max that the server can have, it is currently only allocating, or 'asking', to use about 1GB "Free memory: 352 MB" Of the 1GB that it allocated, 352MB of it is not being used. Therefore, your server is really only using about 700MB/6107MB of RAM.