Destroyer writed (at Thu, Jul 25, 2002 at 01:38:58PM -0700):
> After reading the discussion about the memory leak, I checked my 2 CS servers...
>                                   SIZE   SWAP
>  7766 hlds      13   0  170M 111M  58M 44228 R    55.3 11.7 360:30 hlds
>  1397 hlds      14   0 83576  19M  62M 57568 R    44.4 12.4  1273m hlds
>
> The first server just keeps eating memory and is running:
> metamod 1.12.3
> adminmod 25206a (standard plugins + ATAC)
> hlguard 1.07
> statsme 2.6.4
>
> The second server is fine and is running:
> metamod 1.12.3
> monster_mm_i386.  v3.00.00
> admin_MM_i386.so  vb25037s (standard plugins)
> hlguard_mm_i386.  v1.07
> fakefull_mm_i386  v1.3
> statsme_mm_i386.  v2.5.6
>
> I would think that it is not hlds that is leaking, but statsme or adminmod.

But 83MB is still *twice* what they used a while back.  Anyway, I
tried running a vanilla hlds without any metamod or MM plugins, and it
still ate up memory.

On another note, I'm fairly certain there's a memory leak in Admin
Mod.  I don't know enough about Small and the AMX stuff to really
verify it, though.  I have a plugin which has a function that is
called every time damage is dealt and again for a kill.  Eventually, I
start getting "error 3"s back from those two commands until the map
restarts.  The commands are triggered by LogD, but that's really
irrelevant.  I'm fairly certain that Admin Mod is behind on the AMX
version, but dropping-in the code from the Small site helped me
generate an amx_admin.so that crashed my servers rather quickly. :)

I've tried to make my plugin leaner so as to not grow its data segment
such that it collides with the stack, but to no avail.  I just can't
see why it's doing it.  The biggest problem is that this is my
teamdamage/teamkill punishment plugin, so punishment just stops
working after a while until the map restarts. :(

I added some minimal debugging info to amx.c, but I don't really
understand it.. it'd be nice if Alfred would define amx_Debug() :)

I've had this problem with all versions of admin mod since I wrote the
plugin, which wasn't very long ago.

--
-- Casey Zacek (Zippo)
   Beer for Breakfast servers        <http://bfb.bogleg.org/>
   209.41.98.2:27016 (CS multi-map)   209.41.98.2:27015 (DoD)
   209.41.98.2:27017 (CS militia/dust2)            Dallas, TX
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to