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

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jun 26 18:43:31 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:                     new
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-06-26 18:43 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0123942) captainjez (reporter) - 2010-06-26 18:43
 https://issues.asterisk.org/view.php?id=17553#c123942 
---------------------------------------------------------------------- 
I've just built Asterisk 1.6.2.9 and i'm still having the issue. I'm not
running DAHDi, and i've got the following modules loaded:

app_cdr.so
app_chanisavail.so
app_channelredirect.so
app_confbridge.so
app_db.so
app_dial.so
app_exec.so
app_forkcdr.so
app_macro.so
app_originate.so
app_parkandannounce.so
app_playback.so
app_queue.so
app_read.so
app_readexten.so
app_record.so
app_senddtmf.so
app_sendtext.so
app_setcallerid.so
app_sms.so
app_softhangup.so
app_system.so
app_transfer.so
app_verbose.so
app_voicemail.so
bridge_builtin_features.so
bridge_multiplexed.so
bridge_simple.so
bridge_softmix.so
cdr_sqlite3_custom.so
chan_bridge.so
chan_iax2.so
chan_local.so
chan_sip.so
codec_alaw.so
codec_ulaw.so
format_g729.so
format_sln.so
format_wav.so
format_wav_gsm.so
func_callerid.so
func_cdr.so
func_channel.so
func_config.so
func_cut.so
func_devstate.so
func_dialgroup.so
func_dialplan.so
func_env.so
func_extstate.so
func_global.so
func_groupcount.so
func_logic.so
func_module.so
func_shell.so
func_strings.so
func_timeout.so
func_vmcount.so
func_volume.so
pbx_config.so
pbx_loopback.so
res_clioriginate.so
res_convert.so
res_limit.so
res_monitor.so
res_musiconhold.so
res_timing_pthread.so 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-26 18:43 captainjez     Note Added: 0123942                          
======================================================================




More information about the asterisk-bugs mailing list