Game seemingly has a sudden Network/Raknet Memory leak in 150 player servers (Ping spikes from 1k - 5k then server crashes)

Our game, Birdcage, has had alright performance when considering our NPC + Player counts, however recently, without having made any changes to how any of our core scripts work, we’ve had a seemingly terrible leak with raknet and have been struggling really bad with finding the source. Ping’s been recently spiking from around 80 - 150 ms and shooting straight up to between 1k - 5k ms. We’ve been wondering if anyone may understand what exactly the microprofiler data in this refers to as I can’t find any information on it in this case.

Whenever the server starts up, net/raknet starts off at around 100 MB then over the span of around an hour reaches 3000 MB.

Some important things to note, we fire remotes fairly often and have a large chunk of players, so I suspect this may have something to do with it, however when I do search for anything related to a RakNet::UpdateNetworkLoop overflow, I don’t actually manage to find any info on it, hence why I’m here to see if anyone knows anything.

Below is the microprofiler of the server in which it occurred. I plan on adding a module to track remote event usage in the off-chance it’s caused by an exploiter mass spamming remotes, but once again I cannot be very sure. F9 shows that client memory is fine and everything in server memory ASIDE FROM Raknet is 100% fine. Raknet being the only thing that’s abnormally high.

log_886DD_microprofile_20230501-005057.html (3.9 MB)

3 Likes

The issue has been found, after extensive testing I found the cause was remote-event spamming. For some reason, there are a whole lot of variables with remote-events which result in different memory usage. Possibly found that FireAllClients has a memory leak, however, I don’t have access to post engine bugs in case it’s true, if anyone does see this and has access and would like to post it, don’t hesitate to get in touch with me and I’ll forward all the information with regards to remote event spam I’ve found through testing.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.