RPC delays and drops after running the server for a day (or heavy player traffic)

I’m having a serious issue with my game server. I’m using only RPC calls to manually manage the players (no state syncing and no buffered calls). I do this so that I can support multiple game sessions within a single game server (potentially hundreds of game sessions).

The issue I’m experiencing is after running the game server for a period of time (approximately 8 hours. sooner if heavy player traffic), RPC calls from the server starts having a delay (lag) that starts out around 5 seconds and ends up over 30 seconds. Sometimes it recovers, but most times it doesn’t. I believe some RPC calls are being dropped. Even connecting to the server has the same lag when this happens. Restarting the game server app seems to fix this.

Exactly how much traffic are you refering to? Is it above what the internet of that server can handle? Are you doing any Buffered RPC calls? Are you sure that it’s not something else that is causing update lag? (An array being huge or something similar?)

Hope you fix this :slight_smile:

Hrm, interesting…

The first thing I would check is to make sure your connection isn’t saturated. Or, maybe your process is being bogged down by something else on the machine? What is your ram usage like?

Check your error logs, anything in there that might point you to the right direction?