We recently had some issues where our server was running super choppy, with only 2 people logged in at one time. The CPU usage would max out on the server, and eventually cause it to crash. After many hours of scouring Google and testing, I finally found the solution. I decided to share this information, in hopes that this information will help someone else from struggling.
My runtime command was missing quite a few Java runtime options. In the end, the options that optimized my server the most were: ‘–noconsole’, ‘-server’ and ‘nogui’.
Here is the command that is currently running our humble server:
/usr/bin/java -server -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xmx1600M -Xms1600M -jar /home/minecraft/app/minecraft_server.1.11.2.jar nogui –noconsole
Next, I’ll break down what each directive of the command does.
If you’ve gone through all of these settings and still have bad performance, we would recommend increasing the size of your server. The bigger the world, the more resources a server will consume.
Have a great day!
Admin