RefractorGSCM / Refractor

An open-source game server community manager built with Go.

Home Page:https://refractor.dmas.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPU usage

Deathay opened this issue · comments

Hello,

This was actually quite long time a bug i always forgot to report.

The cpu usage is extremely high after a time, i run this on a two core server, it works normal then randomly one core has been up to 100% and starts using the other core till then that bugs out to 100% as well. By solving it i restart docker docker restart $(docker ps -q). Do you have this similar issue? I also have run many servers on it, perhaps it is the logging of rcon?

One month stat of cpu: screen image

I haven't noticed this issue, but depending on how many servers you have it could definitely be logging related. How many servers do you have?

too many haha, couple are offline but for like 40 servers and 5 offline. But this was an issue for like in the very beginning with 30 servers too, some reason since last update a bit more faster as usual(but i can be wrong about this one, too fast to tell).

This could be caused by the underlying issues in the RefractorGSCM/RCON client. It is very error prone right now due to some design errors. I started a rewrite to hopefully address these errors this weekend, but it likely won't be complete for a while. Specifically, I think the logging of these errors could be causing it as you suggested above.

At some point I'll add an env flag to enable RCON logging and I'll have it disabled by default which will hopefully improve not only logging performance but also log readability. I'll follow up when the RCON issues are either fixed or the RCON logging changes were made.