Sample Header Ad - 728x90

Debian increase ulimit for Asterisk

2 votes
3 answers
3909 views
I've been facing an issue with Asterisk 13.11.2 on Debian 8 where it's crashing after reaching the limit of open files bridge_channel.c: Can't create pipe! Try increasing max file descriptors with ulimit -n I have managed to increase the limit from 65536 to 150000 using the /etc/security/limits.conf I have added the following: root soft nofile 150000 root hard nofile 150000 * soft nofile 150000 * hard nofile 150000 The result of ulimit -n is now 150000 When i try check the limit for the Asterisk process cat /proc/xxx/limits I still get the old limit! Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 31945 31945 processes Max open files 1024 4096 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 31945 31945 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us How to solve this?
Asked by TareKhoury (121 rep)
Oct 4, 2016, 08:54 AM
Last activity: Apr 9, 2025, 01:09 PM