Unable to allocate RTCP socket: Too many open files in system

From Kolmisoft Wiki

Jump to: navigation, search
[Apr  3 00:09:52] WARNING[15997]: rtp.c:1863 ast_rtcp_new: Unable to allocate RTCP socket: Too many open files in system
[Apr  3 00:09:52] WARNING[15997]: udptl.c:782 ast_udptl_new_with_bindaddr: Unable to allocate socket: Too many open files in system
[Apr  3 00:09:52] WARNING[15997]: channel.c:778 ast_channel_alloc: Channel allocation failed: Can't create alert pipe!
[Apr  3 00:09:52] WARNING[15997]: chan_sip.c:3966 sip_new: Unable to allocate AST channel structure for SIP channel
[Apr  3 00:09:52] WARNING[15997]: app_dial.c:1191 dial_exec_full: Unable to create channel of type 'SIP' (cause 0 - Unknown)

Under linux, by executing

cat /proc/sys/fs/file-nr

you'll get 3 numbers on one line, which mean:

  • (max number of files simultaneously open since boot)
  • (how many files are open right now)
  • (max number of files allowed to be simultaneously open)

and you can change the last number (the max limit) by doing e.g.

echo 8192 > /proc/sys/fs/file-max

which can be done automatically on every boot by installing that command in an initialization file like /etc/rc.d/rc.local

Personal tools

Try MOR

Try M2