Hello,<br><br>On a production system, I'm seeing this:<br>
[Feb 13 16:47:00] WARNING[14742] res_agi.c: Unable to create toast pipe: Too many open files<br>
[Feb 13 16:47:00] WARNING[9283] acl.c: Cannot create socket<br>
[Feb 13 16:47:00] WARNING[9283] rtp.c: Unable to allocate RTCP socket: Too many open files<br>
[Feb 13 16:47:00] WARNING[14732] acl.c: Cannot create socket<br>
[Feb 13 16:47:00] WARNING[14732] channel.c: Channel allocation failed:
Can't create alert pipe! Try increasing max file descriptors with ulimit
-n<br>
[Feb 13 16:47:00] WARNING[14732] chan_sip.c: Unable to allocate AST channel structure for SIP channel<br>
[Feb 13 16:47:00] WARNING[14732] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)<br>
[Feb 13 16:47:00] ERROR[14732] rtp.c: Unable to allocate socket: Too many open files<br><br><br>Typing ulimit -a, shows :<br>
# ulimit -a<br>
core file size (blocks, -c) 0<br>
data seg size (kbytes, -d) unlimited<br>
scheduling priority (-e) 0<br>
file size (blocks, -f) unlimited<br>
pending signals (-i) 16382<br>
max locked memory (kbytes, -l) 64<br>
max memory size (kbytes, -m) unlimited<br>
open files (-n) 1024<br>
pipe size (512 bytes, -p) 8<br>
POSIX message queues (bytes, -q) 819200<br>
real-time priority (-r) 0<br>
stack size (kbytes, -s) 8192<br>
cpu time (seconds, -t) unlimited<br>
max user processes (-u) unlimited<br>
virtual memory (kbytes, -v) unlimited<br>
file locks (-x) unlimited<br><br><br>So it seems that increasing this open files limit from 1024 to 2048 could work around the above issue.<br><br>Strangely, I can't find much online doc on ulimit and its usage.<br>
My main source is <a href="http://ss64.com/bash/ulimit.html">http://ss64.com/bash/ulimit.html</a><br>and I also found this <a href="http://lists.digium.com/pipermail/asterisk-dev/2006-October/024091.html">http://lists.digium.com/pipermail/asterisk-dev/2006-October/024091.html</a> where I could read <br>
<pre>><i> And what does 'ulimit -n' say for your Asterisk process?</i></pre><br><br>1. How can I specificially read "ulimit -n" for asterisk, for instance when asterisk is run by an asterisk user which has no login or shell ?<br>
2. Is there an easy and safe way to increase the number of files opened by asterisk ?<br><br><br>Regards<br><br><br><br><br><br>