[asterisk-dev] Asterisk and file descriptors

Steve Edwards asterisk.org at sedwards.com
Wed Oct 15 19:35:05 CDT 2008

On Wed, 15 Oct 2008, Terry Wilson wrote:

>> I tracked some time ago this issue, but seems that the amount of file
>> descriptors is ok. If I do "ls -l /proc/PID/fd | wc -l" I get normally
>> 400-500 fd's. Looking at safe_asterisk's code, when there is no ulimit
>> -n, it configures max open files to half of value in
>> /proc/sys/fs/file-max, which is 103152 in our case, so this doesn't
>> seems an issue.
>> Also seems that when this error is triggered, there's and audiohook
>> message complaing of write/read factory:
> I recommend running !ulimit -n from the asterisk CLI to see what the
> setting really is.  I seem to remember that setting it in the
> safe_asterisk script has no effect.

Isn't this going to show the maximum number of open file descriptors in 
the command line process instead of the daemon?

Thanks in advance,
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000

More information about the asterisk-dev mailing list