[Twinsen] [0.13.10] Headless mode (--start-server) causes 100% cpu
Posted: Sat Jul 23, 2016 1:47 am
When starting a headless server on Linux or Windows the cpu consumption goes to 100% on one core/thread and stays there.
This does already happen directly after starting the server, without any clients connected. It's staying at 100% while connecting/downloading map and playing and never goes down.
Does not happen when hosting a multiplayer game using the GUI interface on Windows.
This does already happen directly after starting the server, without any clients connected. It's staying at 100% while connecting/downloading map and playing and never goes down.
Does not happen when hosting a multiplayer game using the GUI interface on Windows.
Code: Select all
top - 03:44:34 up 12 min, 2 users, load average: 1.00, 0.90, 0.52
Tasks: 87 total, 2 running, 85 sleeping, 0 stopped, 0 zombie
%Cpu(s): 10.9 us, 14.1 sy, 0.0 ni, 75.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 4047304 total, 234672 used, 3812632 free, 7788 buffers
KiB Swap: 2094076 total, 0 used, 2094076 free. 56040 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
456 root 20 0 286684 91916 13328 R 100.1 2.3 11:17.69 factorio
476 root 20 0 23520 2768 2364 R 0.3 0.1 0:00.02 top
1 root 20 0 28640 4508 2904 S 0.0 0.1 0:01.34 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd