[asterisk-users] 786 000 files limit Centos 7 - Asterisk keep complaining
Tony Mountifield
tony at softins.co.uk
Tue Aug 11 11:50:29 CDT 2015
In article <002b01d0d414$36af31b0$a40d9510$@verishare.co.za>,
Stefan Viljoen <viljoens at verishare.co.za> wrote:
> >> Anybody else ran into this?
>
> >No, but I would ask myself why so many file descriptors are being used.
> >It sounds like you have a file descriptor leak (not being closed when
> >finished with).
>
> Hi Tony
>
> Thanks for replying.
>
> I suspected something like that, though repeatedly running
>
> lsof | wc -l
>
> Always stays quite low - 100 000 open files, which is still 8 times less
> than the system maximum as confirmed by running ulimit -n
>From what you said below, the above is probably not relevant...
>
> SOMETHING NEW
>
> I have now ran
>
> /usr/bin/prlimit --pid `pidof asterisk`
>
> and I have noticed that even though I have 800 000 files specified, the
> ACTUAL limit in place on Asterisk for numbers of files is only 1024?!
Yes, this is likely. Have a look in /usr/sbin/safe_asterisk, at the
commented-out settings for SYSMAXFILES and MAXFILES, and try setting those.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list