Recently, I decided to get myself a minecraft server again, using some hosting service. I used the same hosting service as before, since last time me and my friends had a great experience. The previous server was running just as smoothly as if we were playing single player.
But now, on my new server, I get lag spikes every 3-4 seconds, which are mostly noticeable when:
Travelling by minecart
Observing items flow through hoppers (the "rythm" isn't constant)
Fighting mobs (mobs pause every few seconds)
Mining lots of blocks quickly (getting ghost blocks often, and blocks reappear a lot)
I can't imagine what it will be when most of the players on the server will have Elytras.
There are some things I think might be the cause of this lag:
We have 1GB Ram dedicated (1.5GB before)
Version 1.11.2 (1.8.9 before)
View distance is set to 12 (10 before)
There's a lot more stuff built in the area I play in than before (lots of animals in farm), see screenshot below:
But most of this shouldn't matter, as the server is 100% vanilla, and there are at most 4 players connected at once. It lags even when I am alone on the server, 1 GB should be more than enough in our case. Also tried playing from my friend's place (30 min drive from me), to see if it was related to my internet connection, same issue.
So, I am wondering what I can do to fix that, and what are the usual causes of such lag? I ask here before I submit a ticket to my hosting service support and finally realize I missed something obvious. If the only solution is to get more RAM, then I'll figure out a way to upgrade to 2GB with my hosting provider.
Ok try using a optimized server jar like paper, taco, sponge or spigot and as for your java args you would need to ask your minecraft host to adjust them for you as you are using multicrtaft if your host makes excuses or wont look into it etc then i would start thinking about looking for a better host.