[asterisk-bugs] [Asterisk 0018094]: Memory leak happens when repeatedly tested

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 7 20:19:56 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18094 
====================================================================== 
Reported By:                warmguy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18094
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.0-rc2 
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-10-05 02:31 CDT
Last Modified:              2010-10-07 20:19 CDT
====================================================================== 
Summary:                    Memory leak happens when repeatedly tested
Description: 
I repeatedly registered and unregistered 200 Peers(tls-based)
Using pmap utility, I checked memory usage of asterisk process.
Memory usages increased continuously.
The following content is pmap data. 

2010-10-05-15:58:45 total   148768K <-- Initialization
2010-10-05-15:58:55 total   148768K
2010-10-05-15:59:05 total   148768K
2010-10-05-15:59:15 total   148768K
2010-10-05-15:59:25 total   148768K
2010-10-05-15:59:35 total   148768K
2010-10-05-15:59:45 total   257488K
2010-10-05-15:59:55 total   338032K <-- 200 Peers is registered
2010-10-05-16:00:05 total   338032K
2010-10-05-16:00:15 total   338032K
2010-10-05-16:00:25 total   338032K
2010-10-05-16:00:35 total   338032K
2010-10-05-16:00:46 total   338032K
2010-10-05-16:00:56 total   338032K
2010-10-05-16:01:06 total   338032K
2010-10-05-16:01:16 total   338032K
2010-10-05-16:01:26 total   338032K
2010-10-05-16:01:36 total   338032K
2010-10-05-16:01:46 total   338032K
2010-10-05-16:01:56 total   338032K
2010-10-05-16:02:06 total   338032K
2010-10-05-16:02:16 total   338032K
2010-10-05-16:02:26 total   338032K
2010-10-05-16:02:36 total   328688K <-- unregistered and tls connection
closed
2010-10-05-16:02:46 total   328688K
2010-10-05-16:02:56 total   328688K
2010-10-05-16:03:06 total   328688K
2010-10-05-16:03:16 total   329096K
2010-10-05-16:03:26 total   343236K <-- 200 Peers is registered
2010-10-05-16:03:36 total   343236K
2010-10-05-16:03:46 total   343236K
2010-10-05-16:03:56 total   343236K
2010-10-05-16:04:06 total   343236K
2010-10-05-16:04:16 total   343236K
2010-10-05-16:04:26 total   343236K
2010-10-05-16:04:36 total   343236K
2010-10-05-16:04:46 total   343236K
2010-10-05-16:04:56 total   343236K
2010-10-05-16:05:06 total   343236K
2010-10-05-16:05:16 total   334136K <-- unregistered and tls connection
closed
2010-10-05-16:05:26 total   334136K
2010-10-05-16:05:36 total   334136K
2010-10-05-16:05:46 total   334136K
2010-10-05-16:05:56 total   334392K
2010-10-05-16:06:06 total   354200K <-- 200 Peers is registered
2010-10-05-16:06:16 total   354200K
2010-10-05-16:06:26 total   354200K
2010-10-05-16:06:36 total   354200K
2010-10-05-16:06:46 total   354200K
2010-10-05-16:06:56 total   354200K
2010-10-05-16:07:06 total   354200K

Also, when I registered 1 Peer, memory usage increased almost 1MB.


====================================================================== 

---------------------------------------------------------------------- 
 (0127796) warmguy (reporter) - 2010-10-07 20:19
 https://issues.asterisk.org/view.php?id=18094#c127796 
---------------------------------------------------------------------- 
To analysis this problem,
I repeatedly registered and unregistered 400 Peers(tcp-based and
udp-based)
Using pmap utility, I checked memory usage of asterisk process.
In two cases(tcp,udp), memory usages did not increase. And also, these
logs were attached.
In my guess, when I test tls-based registration, this problem happen. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-07 20:19 warmguy        Note Added: 0127796                          
======================================================================




More information about the asterisk-bugs mailing list