Dedicated_Valheim_Server_Script icon indicating copy to clipboard operation
Dedicated_Valheim_Server_Script copied to clipboard

Server keeps going inactive

Open Alex-Mastin opened this issue 5 years ago • 5 comments

For some reason, the server keeps going from active to inactive. It happens consistently after it has been running for a while with nobody connected, but it also happened while someone was on the server and playing. This means that I have to remote into the server and start the process multiple times throughout the day.

The server runs fine and works as it should otherwise. Just a bit annoying to have to restart it 3+ times per day.

Not sure if this is an issue with the Valheim server executable itself or the script.

Alex-Mastin avatar Mar 11 '21 00:03 Alex-Mastin

what do you logs show

Nimdy avatar Mar 11 '21 05:03 Nimdy

i am going to guess....

resources...or password is not unique.

https://github.com/Nimdy/Dedicated_Valheim_Server_Script/wiki/Top-10-Reason-your-Server-is-not-working-and-how-to-fix

Nimdy avatar Mar 11 '21 05:03 Nimdy

Check your syslogs.... look for out of memory errors...

Let me know :)

Nimdy avatar Mar 11 '21 06:03 Nimdy

The server is an Ubuntu droplet on DigitalOcean, $20/mo plan, so 2 CPUs and 4GB RAM. So the specs are the recommended minimum.

You are right, it's an out of memory error. Ran grep oom /var/log/* and got the following: image

Running watch -n 5 free -m yields this without the server running: image

And with it running: image

So it seems like 2 CPUS, 4GB RAM is sufficient, but only just barely. I'll increase the resources and see if that fixes the issue.

Alex-Mastin avatar Mar 11 '21 08:03 Alex-Mastin

Let me know... Normally, I have seen 4GB ram work... but once the world get used a lot (building, exploring...etc), it starts to crash.

I am hoping IronGate does a lot more optimization in the future.

I run 4CPU 8GB ram.... no issues since day one. The only thing we experience is the commonly known issues from Official Valheim Bug Tracker.

Once I get back to playing again and testing... I will do some outside the box stuff to see if I cant force better processing of game data and the handling of processes.

Keep in touch!

Nimdy avatar Mar 11 '21 08:03 Nimdy