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

Post Reply
User avatar
Adambean
Large cart builder
Large cart builder
Posts: 7
Joined: Fri Sep 04, 2020 8:57 pm
Location: Cardiff, South Wales
Contact:

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

Post 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 6264 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.

User avatar
Kenabil
Soldier
Soldier
Posts: 87
Joined: Sun Jul 26, 2020 10:32 am
Location: Awakening
Contact:

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

Post by Kenabil »

What does the log say? Usually, when there's lag log messages will be printed. Increasing RAM could solve the issue.

Post Reply