[asterisk-bugs] [Asterisk 0017553]: Memory leak on reload

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jul 10 10:11:02 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17553 
====================================================================== 
Reported By:                captainjez
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17553
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.7 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-06-24 20:20 CDT
Last Modified:              2010-07-10 10:11 CDT
====================================================================== 
Summary:                    Memory leak on reload
Description: 
I've compiled a fresh version of Asterisk 1.6.2.7 under FreeBSD 8.0,
however on a "dialplan reload" or "module reload" the memory usage of
Asterisk jumps on average by around 100k in size. When I reduce the
hash_users, hash_peers and hash_dialogs sizes down from the defaults, the
memory jump is reduced to around 10-15k on average. I've set them to:

hash_users=150
hash_peers=50 
hash_dialogs=50 

I'm able to always reproduce this, i've tried removing modules to see if
there's something specific causing a leak, however to no avail.

Details are as follows:

FreeBSD 8.0-RELEASE-p3 https://issues.asterisk.org/view.php?id=0: Wed May 26
05:45:12 UTC 2010    
root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 

Asterisk was compiled from source, the version in ports tree is too far
behind so we can't use this.

Happy to provide any other information required to assist.

Thanks.
====================================================================== 

---------------------------------------------------------------------- 
 (0124456) svnbot (reporter) - 2010-07-10 10:11
 https://issues.asterisk.org/view.php?id=17553#c124456 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 275469

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_sip.c
U   branches/1.6.2/configs/sip.conf.sample

------------------------------------------------------------------------
r275469 | russell | 2010-07-10 10:11:01 -0500 (Sat, 10 Jul 2010) | 29
lines

Merged revisions 245192 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r245192 | mmichelson | 2010-02-06 08:43:03 -0600 (Sat, 06 Feb 2010) | 21
lines
  
  Remove useless sip options related to hash table size.
  
  First off, these options weren't actually doing anything.
  By the time the options were parsed, the peer and dialog
  containers had already been allocated with their default
  values.
  
  Second, hash table size is something that doesn't really
  make sense to change in a config file. If a user is that
  interested in changing the hashtable size, he can modify
  the source itself.
  
  I have removed the parsing of the hash_peer, hash_user,
  and hash_dialog options. I have removed the hash_user_size
  variable altogether since it is not used at all. I also
  changed hash_peer_size and hash_dialog_size to be constant,
  and have changed the symbols to be in all caps as constants
  typically are. I have also removed the entire section in
  sip.conf.sample regarding configurable hashtable sizes.
........

(merge to 1.6.2 inspired by issue https://issues.asterisk.org/view.php?id=17553)

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

http://svn.digium.com/view/asterisk?view=rev&revision=275469 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-10 10:11 svnbot         Checkin                                      
2010-07-10 10:11 svnbot         Note Added: 0124456                          
======================================================================




More information about the asterisk-bugs mailing list