Since the 1.8 update my server became very laggy. I noticed the CPU usage is extremely high. (100% most of the time) Because of the high CPU usage, the server will lag out and the watchdog will stop it. If I set the max-tick-time to -1, the server won't crash but no-one will be able to join due to the fact that there is so much lag, the connection will time out. I have included a watchdog crash log of the server and a screenshot of the linux program 'htop'. Even if I run the server on my gaming PC (much higher specs: i7 2600k, 16GB ram) the server is still very laggy. (80% CPU usage)
Can't keep up! Did the system time change, or is the server overloaded? Running 83782ms behind, skipping 1675 tick(s)
Related issues
duplicates
Attachments
Comments


Either a technical issue or MC-63590

If there are no people on the server, the java process is on 10% CPU usage. As soon as someone joins the game the usage will instantly go to 100%. I'm 100% sure it is not a problem with my server as it happens on multiple machines with different specs. MC-63590 Is also referring to this issue but setting the max-server-tick to -1 is not a solution as it will only stop the watchdog from stopping the server. The problem is that since 1.8.1 one of the threads is always using 100% CPU as soon as someone joins the server.

When I set the difficulty to peaceful the CPU usage will go back to normal it seems, now steadily at 20%.
Might be an issue with mob spawning?