[asterisk-dev] 0008660: Possible memory leak doing only inbound SIP handling

Andre Courchesne acourchesne at prival.ca
Fri Jan 5 09:28:47 MST 2007


How do I go about compiling Asterisk with "memory allocation debugging 
support" ?

Tzafrir Cohen wrote:
> On Fri, Jan 05, 2007 at 11:03:51AM -0500, Andre Courchesne wrote:
>   
>> Hi all,
>>
>>  I would like to get feedbacks on the following bug:
>>
>>       http://bugs.digium.com/view.php?id=8660
>>
>>
>>  When trying to profile our Asterisk distribution, we ran test where a 
>> server would initiate SIP calls to a test server (UIT) running our 
>> distribution and the latest Asterisk packages. We found that doing only 
>> inbound SIP calls handling, the UIT free memory would slowly get lower 
>> and lower.
>>
>>  We performed the test against an earlier version of our distribution 
>> running Asterisk 1.0x as well as on Trixbox 2.0Beta2 and found similar 
>> results. We also performed the same tests on AsteriskNOW 1.4.0Beta2 with 
>> again similar results.
>>
>>  Thanks for any feedback.
>>     
>
> First off, you can get more accurate data from 'ps u UID_OF_ASTERISK'
>
> The UID of Asterisk is probably in the pid file under /var/run . . But
> those numbers are still rather crude.
>
> In addition, if you suspect a memory leak, it would help to rebuild
> asterisk with memory allocation debugging support. This will allow you
> to pin-point exactly from which allocation in the code the leak comes.
>
>   


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the asterisk-dev mailing list