Page 1 of 1

Occasional CPU spikes to 100% for 30-60 seconds (completely blocking)

Posted: Tue Mar 16, 2021 10:38 pm
by Adambean
I've noticed that as of the past couple of days my WU server process regularly (every 5-10 minutes) seems to be stuck in a blocking loop lasting about 30-60 seconds. During this period the game is largely unresponsive to players. (Menus not usable, can't move properly, etc.) Usually at the end of it if you've moved your game client isn't in sync with your position on the server.

This definitely looks to be CPU related, not memory or disk I/O:
WU Server: java.exe CPU maxed out
WU Server: java.exe CPU maxed out
wu-server-java-cpu-maxed.png (97.97 KiB) Viewed 431 times
The only change I had made was increasing the tree spread odds variable from 500 to 1000. I thought perhaps there was some limit or bug causing a loop every time tree spreading was being "gambled", though since putting that back to 500 the problem still persists.

Re: Occasional CPU spikes to 100% for 30-60 seconds (completely blocking)

Posted: Thu Mar 18, 2021 4:32 pm
by Kenabil
What does the log say? Usually, when there's lag log messages will be printed. Increasing RAM could solve the issue.