Minecraft – How to improve the performance of the Minecraft server on a local network

minecraft-java-editionminecraft-java-edition-server

I run my own Minecraft server on our local network. It has a quadcore AMD Phenom II 955 CPU with 12 gigs of ram. This shouldn't be a bottleneck. The operating system is Windows Server 2012 Enterprise. Our internal network is 1 Gb/s and outgoing is 100 Mb/s down and 10 Mb/s up and around 20-30 ms ping with players.

It is fine with one player. No block lag (when mined blocks don't appear back), lag when walking or anything. When a second player joins, on home network or from somewhere else, block lag and movement lag starts.

I have allocated Java 4 GB of memory and I've set its priority to real time in Windows Task Manager. In case of one or five players, CPU usage stays at somewhat stable 20 % for Java. Why doesn't it take more power to help with the issues? What optimizations could I do?

Best Answer

What's your hard drives' speeds? Your hard drive may be the bottleneck in this case, as a Minecraft server needs to read and write a lot to the disk, especially when there are many chunks to be loaded at a time.

Reportedly, a RAM disk or SSD will decrease these read and write times by extreme amounts. There are a few tutorials (like this one) out there that explain how to set up a RAM disk, but you're on your own if you are going to use one. Do know, however, that Dataram's not the only one who has RAM disk software; see this forum post for a full list.