[OpenSER-Devel] SF.net SVN: openser: [4169] branches/1.2/modules/snmpstats

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue May 13 19:01:08 CEST 2008


Revision: 4169
          http://openser.svn.sourceforge.net/openser/?rev=4169&view=rev
Author:   bogdan_iancu
Date:     2008-05-13 10:01:07 -0700 (Tue, 13 May 2008)

Log Message:
-----------
backport from trunk (rev #4167):
- fixed SHM memeory leak; the interprocesses communication system is leaking shm memory due bad pointer referencing; a SHM structure ends up to be refered from multiple structures (pkg ans shm) and cannot be safely freed
Re-worked the the memory management for the interprocesses communication system to be able to properly free the memory.

With a constant pull via SNMP at 5 minutes intervals, with 1K of online subscriber, the modules was leaking around 0.5 Mb per day.

Credits go to Anca Vamanu for implementing the new version.

Patch tested on a production system - quite safe and no side effects ( yet   ;)   )

Revision Links:
--------------
    http://openser.svn.sourceforge.net/openser/?rev=4167&view=rev

Modified Paths:
--------------
    branches/1.2/modules/snmpstats/hashTable.c
    branches/1.2/modules/snmpstats/interprocess_buffer.c
    branches/1.2/modules/snmpstats/interprocess_buffer.h
    branches/1.2/modules/snmpstats/openserSIPContactTable.c
    branches/1.2/modules/snmpstats/openserSIPRegUserTable.c
    branches/1.2/modules/snmpstats/snmpstats.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list