i am starting a server for a large group of people (75+) an need to know how to alot more ram to the server and cant find any good help out there. please help me out thanks. pinkie pie is best pony
a good rule of thumb is to allow at least 100mb ram per person. Even better is to allocate 200mb to allow for plugins, etc. So, for 75 people you would need at least 7.5gigs RAM but preferably 15gigs
ok i have 7.00 gb unused and able to be put towards this ( will up to 16 gb soon) how do i teell the server to use the ram? it seems to cap its self at about 1 gb
The startup parameters contains min and max memory usage with -Xms and -Xmx. Change these to -Xms 6G -Xmx 7G for 6 GB min and 7GB max.
I thought that when more was needed it just gave more until it reached the max size allowed, but I guess you learn something new everyday. Thanks for the help!
Ultimate code for running your server: PHP: @ECHO OFFjava -server -Xmn2G -Xms6G -Xmx7G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=5 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar "%~dp0craftbukkit-0.0.1-snapshot.jar" Or, if that's too much, you can use this simpler one: PHP: @ECHO OFFjava -server -Xmn2G -Xms6G -Xmx7G -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
Set the Java VM to server mode, sets Min Ram Usage to 6 GB, Max Ram Usage to 7 GB and sets the heap size for young generation to 2 GB.
Ooh, technical. Since my server runs on linux, is there a .sh version that I could use for my liking?
oh. well, everything stays the same, just the beginning of the code changes where you give it the sh command. Everything is java, so nothing changes from platform to platform Actually, post your current startup command here, and i will modify mine to fit easily
Code: #!/bin/sh BINDIR="$(dirname "$(readlink -fn "$0")")" cd "$BINDIR" java -Xincgc -Xmx3G -jar craftbukkit-0.0.1-SNAPSHOT.jar That's what I use most of the time, and yes, I know 3 gigs isn't that much.