04-10-2016, 05:32 AM
(04-09-2016, 04:31 PM)androsch Wrote:(04-09-2016, 06:37 AM)LMHansen Wrote: I found that I had to reduce the render distance in the server.properties file from 10 to 6, or there would be a lot of lag, and the server couldn't keep up generating chunks.Cool, got my own minecraft server running also. While i'm not familiar with playing (my son plays it all the time) but interested in tuning the server.properties for him, can you kindly give some hints what you exactly did?
Keep mining....
You need to edit the server.properties file in the folder where the .jar file lives. There's a line "view-distance=10", which defines how far a player can see. Default is 10 chunks. This is too much for the server to handle, even for a single player. I reduced this value to "6", and that removed all the lagging and complaints from the server.
Additionally, some tuning is needed for java to get the best out of it ... I start it like this:
java -server -d64 -Xmx1536M -Xms1024M -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSIncrementalPacing -XXarallelGCThreads=1 -XX:+AggressiveOpts
-jar minecraft_server_1.9.2.jar nogui
I'm not sure of -d64 is needed as -server is specified, but it won't hurt. Most of the rest of the options deals with memory management and garbage collection.
I also used this to set up minecraft as a service: http://minecraft.gamepedia.com/Tutorials...tup_script