[asterisk-users] Openfile Issue

Ahmed Munir ahmedmunir007 at gmail.com
Thu Oct 13 08:30:27 CDT 2016


Hi all,

Now a days getting openfile issues on asterisk quite often even setting
system  soft limit to 20000 and hard limit to 25000 and issue usually
occurs during openfile socket consumed by system and asterisk is quite
smaller than the soft or hard limit. See below system and asterisk logs;

2016:10:13_08:19:01 | Too many LOG file moved successfully - messages

2016:10:13_08:19:01 | Asterisk openfile count: 1252

2016:10:13_08:19:01 | Total system open files count: 4091

2016:10:13_08:19:01 | SIP channels: 93 active calls|1563 calls processed

2016:10:13_08:19:01 | Asterisk SIP peers: 366

2016:10:13_08:19:01 | Asterisk service uptime: System uptime: 4 days, 4
hours, 12 minutes, 33 seconds

Last reload: 4 days, 4 hours, 12 minutes, 33 seconds

Privilege escalation protection disabled!

See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.

2016:10:13_08:19:01 | Socket Summary

Total: 648 (kernel 758)

TCP:   20 (estab 8, closed 5, orphaned 0, synrecv 0, timewait 1/0), ports 14



Transport Total     IP        IPv6

*         758       -         -

RAW       0         0         0

UDP       422       419       3

TCP       15        14        1

INET      437       433       4

FRAG      0         0         0

2016:10:13_08:19:01 | Logged successfully all the required details


[2016-10-13 08:18:41] ERROR[50690][C-0000062a] res_timing_timerfd.c: Failed
to create timerfd timer: Too many open files

[2016-10-13 08:18:41] ERROR[50690][C-0000062a] acl.c: Cannot create socket

[2016-10-13 08:18:41] ERROR[50690][C-0000062a] res_timing_timerfd.c: Failed
to create timerfd timer: Too many open files

[2016-10-13 08:18:41] ERROR[50690][C-0000062a] acl.c: Cannot create socket

[2016-10-13 08:18:41] ERROR[50689][C-00000629] res_timing_timerfd.c: Failed
to create timerfd timer: Too many open files

[2016-10-13 08:18:41] ERROR[50689][C-00000629] acl.c: Cannot create socket

[2016-10-13 08:18:40] ERROR[49913][C-000005b7] cdr_csv.c: Unable to re-open
master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files

[2016-10-13 08:18:40] ERROR[2983] acl.c: Cannot create socket

[2016-10-13 08:18:40] ERROR[49833][C-0000059c] cdr_csv.c: Unable to re-open
master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files

[2016-10-13 08:18:40] ERROR[2983] acl.c: Cannot create socket

[2016-10-13 08:18:40] ERROR[2983] acl.c: Cannot create socket

Further added, I'm using CentOS 6.5 as OS.

Please advise what changes required for permanently fixing this random
issue.


-- 
Regards,

Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161013/a415fe1b/attachment.html>


More information about the asterisk-users mailing list