Jump to content

Is there a memory leak?

Pending 0.4.4

Mihkel
Mihkel

Posted

Hi!

Not sure if it's an issue but i noticed that the plugins hook memory looks huge and i was wondering if there's a memory leak. Could it be that there's some leftover data in the structures not being cleared out?

Screenshot 2026-03-23 at 19.36.18.png

Mihkel

Posted

      "Respawn timer (min 3 seconds)": 300.0,
      "Enable periodic bot reinitialization? (can improve performance)": false

I've now spotted the reinitialization option in the generated config and enabled it to see if that helps.

Also that option is not there on the "default" configuration preview (might be because of the updates you've made) on the plugins page.

walkinrey

Posted

How often do you restart your server? with such uptime server will eat more and more memory, that's why it's recommended to restart server each 12-24 hours to free up some memory and improve performance

we are using facepunch pools to clear all used lists, structures and classes to free up some memory

how many bots do you have?

Mihkel

Posted

Yeah, I'm totally aware of the games quirks in general and the recommendation to do cleanup reboots but no regular restarts have been needed so far so I've only  done them for updates. In general cycling the plugins clears most of the issues.

I'm currently running max 30 bots on the map. The 1.2gigs was (i assume) without them being reinitialized on timer and the population was regulated only by themself and players. I've now enabled the reinit timer and so far (17hours and counting) the mem usage is about 256megs which i think is ok.

But hey, I'm not telling that there is something wrong here. Was just curious about what you think of it.

walkinrey

Posted

no problem, reinitialization should help because it respawns bots (destroying bot & controller so it frees up memory and starts over), pls write what mem usage you will have in 24 hours so we'll know that reinitialization really helps with memory

Mihkel

Posted

On 3/24/2026 at 3:02 PM, walkinrey said:

no problem, reinitialization should help because it respawns bots (destroying bot & controller so it frees up memory and starts over), pls write what mem usage you will have in 24 hours so we'll know that reinitialization really helps with memory

Seems to be doing something. 600megs after 44hours.

  • Like 1
2.3m

Downloads

Total number of downloads.

10.7k

Customers

Total customers served.

154.4k

Files Sold

Total number of files sold.

3.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.