[asterisk-bugs] [Asterisk 0015627]: [patch] Asterisk runs out of sockets

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 10 02:14:10 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15627 
====================================================================== 
Reported By:                falves11
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15627
Category:                   Core/Netsock
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-255 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/446/ 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 209626 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-31 17:12 CDT
Last Modified:              2009-12-10 02:14 CST
====================================================================== 
Summary:                    [patch] Asterisk runs out of sockets
Description: 
The Parallels engineers have found a bug that takes down asterisk because
the server runs out of sockets, and also it degrades the performance
because over time it takes more and more time for the processor to find an
empty socket. The load on the processor grows over time,

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015716 [patch] chan_sip fails to destroy chann...
related to          0016270 [patch] Asterisk doesn't free udp ports
related to          0012101 SIP channel hung due to CANCEL Reliable...
has duplicate       0016408 Asterisk runs out of handles because of...
related to          0016382 SIP OPTIONS qualify message forever
child of            0015356 After a few thousand calls, or at rando...
====================================================================== 

---------------------------------------------------------------------- 
 (0115009) falves11 (reporter) - 2009-12-10 02:14
 https://issues.asterisk.org/view.php?id=15627#c115009 
---------------------------------------------------------------------- 
I think it is perfect. It is 3 AM EST. There are about 50 open calls, 236
SIP Channels, but 873 file handles counted by lsof -i. I have proved it
this way. I changed the bindport in sip.conf and reloaded. There were no
calls coming in. I waited about 2 mins and all the sip channels
disappeared. It means that "sip show channels" showed nothing at all. So
Asterisk should be, theoretically, back to zero. But there were still 147
open file handles, but 100% of them were for the database connection. So
this patch does work. Please commit it. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-10 02:14 falves11       Note Added: 0115009                          
======================================================================




More information about the asterisk-bugs mailing list