I keep getting messages in the Asterisk 220.127.116.11 CLI that there are not enough file descriptors available on my CentOS 7 box.
I also get regular error messages that RTP connections are failing due to bad file descriptors.
I have already edited /etc/sysctl.conf by setting fs.file-max to 786 000
files, and running sysctl -p afterward.
I have also edited /etc/security/limits.conf and entered
* soft nofile 786000
* hard nofile 786000
and rebooted my system.
When I ge the Asterisk error messages in the CLI that there are not enough file descriptors, I immediately ran
lsof | wc -l
and I only get around 100 000 files open – while my limit is 786 000 – yet still Asterisk keeps complaining.
I have also edited /etc/asterisk/asterisk.conf to have
maxfiles = 786000
and restarted Asterisk / rebooted, but this has no effect.
Why does Asterisk 18.104.22.168 complain that there are insufficient file descriptors when my limit is 786 000 and the kernel itself states that only
100 000+ handles / decriptors are in use at the moment Asterisk is complaining about insuffiecient descriptors?
Anybody else ran into this?