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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 9 10:22:25 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:            
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-09 10:22 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...
====================================================================== 

---------------------------------------------------------------------- 
 (0114986) falves11 (reporter) - 2009-12-09 10:22
 https://issues.asterisk.org/view.php?id=15627#c114986 
---------------------------------------------------------------------- 
I think that the patch may need additional work. I have 95 open calls, and
381 lines in "Sip Show channels", mostly like below. Please notice that all
IPs 38.X.X.X are the same IP. The "lsof - i" count is 1114. It seems we are
still leaving the dialogs open beyond their useful life.

38.X.X.X      1561900136  039e5ae1200  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1864233049  64d8e34a0a2  00102/00000  0x0 (nothing)    No   
   Init: INVITE              
38.X.X.X      1561900136  57f1d06d7f7  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900139  4c305c6e613  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1607936602  4fca0f33551  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900139  46c7e6740dd  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900138  75d18ccc09d  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1303937086  66a498463ad  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900136  6f3634090a2  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900136  38f1a442444  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900136  6e35a8ff279  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
64.X.X.X.X    1410229600  15cff42849c  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL                
38.X.X.X      1561900136  47eb528900c  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900139  73087185454  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
208.X.X.X.X   8008188424  2d4a5ed89bb  00101/00501  0x0 (nothing)    No   
   Rx: ACK                   
38.X.X.X      1402660484  1c7284be7ce  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900139  02a1c5e2360  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900137  3b9a32f725b  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900136  3e2504031be  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900136  4481dca7190  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1814943682  089b3a6f3c2  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900139  31d4c0946a4  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900139  7233223d0be  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900138  0df79641545  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900137  23210828386  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900137  03352c58303  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1814943689  1ee65d5103c  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1864242343  3ec9c118304  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
64.X.X.X.X    1646736937  4ca10ef53ff  00102/00000  0x100 (g729)     No   
   Tx: ACK                   
208.X.X.X.X   2137108116  GW64b0f0cc5  00101/00001  0x100 (g729)     No   
   Rx: ACK                   
38.X.X.X      1864288129  1183ab5b5a0  00102/00000  0x0 (nothing)    No   
   Tx: CANCEL (aut           
38.X.X.X      1561900138  53e1d45f2d8  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1810787283  1b1d40c22a2  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
190.X.X.X    7789#17127  638cddef6c5  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL                
38.X.X.X      1480208892  73f5eeab2f9  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900136  4da670681cb  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900137  0998514a08b  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut           
38.X.X.X      1561900137  2fb3675d0a6  00102/00000  0x0 (nothing)    No 
(d)  Tx: CANCEL (aut 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-09 10:22 falves11       Note Added: 0114986                          
======================================================================




More information about the asterisk-bugs mailing list