[asterisk-bugs] [Asterisk 0013908]: Memory Leakage

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 17 11:07:23 CST 2008


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=13908 
====================================================================== 
Reported By:                visu
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13908
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 157167 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-11-17 02:40 CST
Last Modified:              2008-11-17 11:07 CST
====================================================================== 
Summary:                    Memory Leakage
Description: 
Asterisk trunk version (157167) seems to have a major memory leak. The
memory leak increases with evey call and never reclaims. 

[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.8  4.1 28948 10600 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  2.0  4.3 29348 10976 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  2.0  4.3 29348 11004 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.9  4.3 29348 11036 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.6  4.3 29348 11064 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.6  4.3 29480 11092 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.7  4.3 29480 11124 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]# ps aux | grep asterisk | grep -v grep
root     27631  1.6  4.3 29480 11152 pts/4   Sl+  11:01   0:00 asterisk
-c
[root at centos sounds]#     

Let me know if more information required.            
====================================================================== 

---------------------------------------------------------------------- 
 (0094940) otherwiseguy (administrator) - 2008-11-17 11:07
 http://bugs.digium.com/view.php?id=13908#c94940 
---------------------------------------------------------------------- 
This is not the proper way to see if memory is leaking.  Modern OSes will
always use memory if it is available.  The number that ps is giving back to
you is useless.  If you suspect a memory leak, compile asterisk with
MALLOC_DEBUG and use the 'memory show summary' and 'memory show
allocations' commands to print out how much memory asterisk is actually
using (as opposed to what is being cached in memory by the OS).  I am
closing for now, since this is most likely not a bug.  If you find some
real numbers through MALLOC_DEBUG, feel free to reopen this issue and post
your findings. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-17 11:07 otherwiseguy   Note Added: 0094940                          
2008-11-17 11:07 otherwiseguy   Status                   new => closed       
======================================================================




More information about the asterisk-bugs mailing list