[OpenSIPS-Devel] [ opensips-Bugs-3609238 ] Memory leak

SourceForge.net noreply at sourceforge.net
Wed Apr 3 11:46:12 CEST 2013


Bugs item #3609238, was opened at 2013-03-27 00:02
Message generated for change (Comment added) made by nikbyte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3609238&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Memory leak

Initial Comment:
After adding
----------------------------------------------------------------------------------------------------
        if (($tU !~ "'") && ($td !~ "'") && ($ct !~ "'")) {
                avp_db_query("DELETE FROM location WHERE username='$tU' and domain='$td' and contact='$ct.fields(uri)' and path like '%sip:$si:$sp;%'");
        }
----------------------------------------------------------------------------------------------------
for REGISTER call to scenario, I've get shmem memory leak about 250 Mb in 4 hours on system with about 30k regs.

My suspicions is on $ct.fields(url). But I don't know exactly.


----------------------------------------------------------------------

>Comment By: Nick Altmann (nikbyte)
Date: 2013-04-03 02:46

Message:
The leak is in snmp_stats module. When it's disabled, no leak.
Also process with it eats 100% CPU.

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-03-27 03:46

Message:
1) please enable the memory debugging in order to get a mem dump (set
memlog=6 and memdump=1 - in this order).

2) try cornering the "leak" - run the query but without any variables
inside; add them one by one ; see when the leak appears.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2013-03-27 03:11

Message:
I'm really sure.

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-03-27 03:10

Message:
Hi Nick,

are you sure the leak is in SHM mem ? as non of the parsing (variables) or
db ops are using the shm mem - they are using pkg.

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3609238&group_id=232389



More information about the Devel mailing list