[asterisk-dev] Too many open files

David Ruggles thedavidfactor at gmail.com
Tue Jul 27 17:04:52 CDT 2010


I may be experiencing this problem as well.

asterisk version:
Asterisk 1.6.2.6

uname -a:
Linux hostname 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux

uptime:
up 103 days

core show uptime:
System uptime: 13 weeks, 10 hours, 57 minutes, 7 seconds
Last reload: 13 weeks, 10 hours, 57 minutes, 7 seconds

core show channels:
878 active channels
439 active calls
4389328 calls processed
(the server averages 500 active calls)

lsof -p 29061 | wc -l
10957
lsof -p 29061 | grep UDP | wc -l
9829

I started seeing this on the cli which is what made me take note:

[Jul 27 21:35:21] ERROR[29092]: rtp.c:2604 ast_rtp_new_with_bindaddr:
No RTP ports remaining. Can't setup media stream for this call.
[Jul 27 21:35:21] WARNING[29092]: chan_sip.c:7218 sip_alloc: Unable to
create RTP audio session: Address already in use
[Jul 27 21:35:30] ERROR[29092]: rtp.c:2604 ast_rtp_new_with_bindaddr:
No RTP ports remaining. Can't setup media stream for this call.
[Jul 27 21:35:30] WARNING[29092]: chan_sip.c:7218 sip_alloc: Unable to
create RTP audio session: Address already in use

I've been using nagios to monitor and graph the lsof count for
asterisk and it normally runs right at 11k dropping down to 10k about
once a day. I don't know of any cause that explains the pattern, but I
haven't really searched for one yet either.

If this is completely unrelated, I apologize for the noise, but it
seemed like it might be and I wanted to give you another data set.



More information about the asterisk-dev mailing list