Too many open files

Home » Asterisk Users » Too many open files
Asterisk Users 2 Comments

Hi all,

While trying to track down a T.38 issue, I came across a series of log
entries like this:
============================================================================
[Jan 26 10:23:31] WARNING[32508]: udptl.c:948 ast_udptl_new_with_bindaddr:
Unable to allocate socket: Too many open files
[Jan 26 10:23:31] ERROR[32508]: acl.c:488 ast_ouraddrfor: Cannot create
socket
============================================================================

I’m thinking this log entry is related to my fax failure, so I’ve go to ask:

What causes it and how do I fix/mitigate it?

Thanks in advance,

Mike.

2 thoughts on - Too many open files

  • On Thu, 26 Jan 2012 10:35:14 -0700
    Mike Diehl wrote:

    In the script that runs asterisk, execute this command before running
    asterisk:

    ulimit -n 8192

    Then restart asterisk.

    Or, if you have the /etc/default/asterisk file on your system (like I
    do), uncomment the MAX_FILES line (or increase it), and the default init
    script should take care of it when you next restart asterisk.

  • You can also Try:

    ulimit -c unlimited , then restart asterisk

    Juan.
    Linux User #441131

    On Thu, Jan 26, 2012 at 5:53 PM, Chad Wallace
    wrote: