[asterisk-users] Too many open files

Mike Diehl mdiehl at diehlnet.com
Sun Jan 29 01:24:12 CST 2012


I run asterisk from inittab.  So, I'd have to create a shell script to do the 
ulimit, and then start asterisk.  Is there any reason NOT to launch a shell 
script from inittab?

On Thursday 26 January 2012 3:53:42 pm Chad Wallace wrote:
> On Thu, 26 Jan 2012 10:35:14 -0700
> 
> Mike Diehl <mdiehl at diehlnet.com> wrote:
> > 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
> > =========================================================================
> > ===
> > 
> > What causes it and how do I fix/mitigate it?
> 
> 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.

-- 

Take care and have fun,
Mike Diehl.



More information about the asterisk-users mailing list