ike3 / mangosbot

This is a modification of MaNGOS (Zero, One, R2, Trinity) server which brings a number of bots online and available for any player. Also allows you to use your account/guild characters as bots.
http://ike3.github.io/mangosbot-docs/
GNU General Public License v2.0
185 stars 79 forks source link

Memory leak issue? #22

Open cacodaemonic opened 10 years ago

cacodaemonic commented 10 years ago

So I have been doing some tests with a large number of bots. I have 8 gigs of ram on my server and I load up 200 bots are server start-up. I have a total of 3.2 gig RAM free after the server and bots come up. If I let the server run for a 6-8 hours, the server creeps up to using all of the system RAM, with no players on. Eventually it crashes.

I realize I am using a lot of bots here but it seems odd that the bots eat all RAM over a short period of time with no one on. Is this normal?

This is using x64 compile with rev ID 1d37a349, Windows Server 2012 Essentials

ike3 commented 10 years ago

Partially fixed in [ai-0.36-77]

ike3 commented 10 years ago

Another fix in [ai-0.36-79]. I think the leak is almost gone now.

FallenAngelX commented 10 years ago

Any eta on when you all update the R2 branch ? This memory leak and same issues w trinity effect r2 .. Like bots underground

ike3 commented 10 years ago

The changes were backported to R2 in [ai-0.36-88] Btw, it seems R2 development is stopped. i don't see any commit there since September.

Talmeron commented 8 years ago

Lp's fixes, plus disabling the ahbot, have removed the leak. However the ChatHandler changes have killed the bots completely. But the leak is fixed. LOL. Once this is done, I still wouldn't run it on a 286, but I've been able to run it on a dual core just fine before TC changed everything.