Hi folks, I run a dedicated server for myself and some friends on a server I own (not a VPS) that is running CentOS 7.
Things have been going great for a few weeks, no real problems. However, 2 days ago somebody mentioned the server was a bit laggy. The physical server lives in the same rack as my work-related servers on a 1Gbps dedicated connection, in a datacentre in Germany. So I had to take a look to see if the problem was with the datacentre, and therefore affecting my production servers as well.
What I found, was that the 7dtd server executable was using 22GB of RAM on a box with only 16GB RAM, meaning that virtual RAM was being used partially. For weeks it had been hovering between 9GB and 12GB, depending how many players were online. We run a 16k map, with the number of zombies and animals set quite high (several hundred). I closed the server down and restarted it, and it went back to around 10GB of RAM being used. But 12 hours later when I checked, it was back over 20GB of RAM being used.
I have reduced the draw distance (8 down from 12) and halved the max number of zombies and animals, to see if this improved things, even though the server had been running fine previously with the original settings. But yet again, a few hours after restarting the server the RAM usage was approaching 20GB again.
The only issues we have had prior to this, are several players getting the annoying console errors that are caused by electrical fences, something that has been documented elsewhere, and I can't imagine this has caused the server to start using almost twice as much RAM as before. I should also state that this server was setup after the latest update, so this is not a problem with a save from a previous version causing a problem.
EDIT: Forgot to add that this happens even when nobody has logged in to play. A few hours after being started the server has increased RAM usage of about 100%.
As you can see from the attached server log, there seems to be nothing that could indicate what this problem is being caused by. Does anyone have any ideas?
Thanks.
View attachment output_log__2020-10-05__04-21-39.txt
Things have been going great for a few weeks, no real problems. However, 2 days ago somebody mentioned the server was a bit laggy. The physical server lives in the same rack as my work-related servers on a 1Gbps dedicated connection, in a datacentre in Germany. So I had to take a look to see if the problem was with the datacentre, and therefore affecting my production servers as well.
What I found, was that the 7dtd server executable was using 22GB of RAM on a box with only 16GB RAM, meaning that virtual RAM was being used partially. For weeks it had been hovering between 9GB and 12GB, depending how many players were online. We run a 16k map, with the number of zombies and animals set quite high (several hundred). I closed the server down and restarted it, and it went back to around 10GB of RAM being used. But 12 hours later when I checked, it was back over 20GB of RAM being used.
I have reduced the draw distance (8 down from 12) and halved the max number of zombies and animals, to see if this improved things, even though the server had been running fine previously with the original settings. But yet again, a few hours after restarting the server the RAM usage was approaching 20GB again.
The only issues we have had prior to this, are several players getting the annoying console errors that are caused by electrical fences, something that has been documented elsewhere, and I can't imagine this has caused the server to start using almost twice as much RAM as before. I should also state that this server was setup after the latest update, so this is not a problem with a save from a previous version causing a problem.
EDIT: Forgot to add that this happens even when nobody has logged in to play. A few hours after being started the server has increased RAM usage of about 100%.
As you can see from the attached server log, there seems to be nothing that could indicate what this problem is being caused by. Does anyone have any ideas?
Thanks.
View attachment output_log__2020-10-05__04-21-39.txt
Last edited by a moderator: