I would like to run a little home server for a mate and myself. Nothing majour. Just a small 2 players stoneblock 2 server.
I have done all the bits and it is all running. Port forwarding. Making sure it can get through my fire wall. We log into it through the internet.
The problem is that it is slow. Lots of lag. There are moments where it is super smooth. Then the next it chugs along like I am running it off a 286. I get that "cant keep up!" message all the time.
So here is a brief discription of my setup. I am playing minecraft on the same system I am running the server. It is a 12 core 24 thread machine with 64 gigs or ram. The serve is installed onto a SSD that can do 800mb a second. So no slouch. I have adjusted the server to only draw 6 chuncks in the distance. Not that this should matter. It is the start of a stoneblock world. The minecraft game is running with 8 gigs of ram and the server is running with 5 gigs. Despite this the sever never really uses more than 1.747gigs of ram. Also in one of the config files I have tried telling java to use more cores. CPU usage never seems to go above 10%.
Yet with all that I am getting massive average tick spikes from time to time. The periods when it is smooth I am getting .641ms tick. When it is not I am getting 50ms+.
I am unsure what to do. My gaming pc is meant to be a work horse for work as well. So there is plenty of headroom. It just does not seem to be using it.
Just an update. I have done some more testing. It seems the issue persists even when no one is on the server. Just having the server running without myself being in minecraft on the same PC gives this issue. The average ticks seems fine for a while followed with sporadic tick spikes. Getting the error message of not being able to keep up!