[asterisk-dev] Asterisk and file descriptors

Terry Wilson twilson at digium.com
Wed Oct 15 18:44:42 CDT 2008


> 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.



More information about the asterisk-dev mailing list