You are not logged in.

#1 2007-08-23 16:14:38

Kin
Member
From: Oberfranken / Europe
Registered: 2004-01-23
Posts: 137

to many open files error + asterisk

Hi,

I now have a working test environment with SIPP and Asterisk. I wondered why only 83 concurrent calls were possible. The cpu was only at 24%, enough memory was free, network bandwith was only about 5MB up and down.

I checked Asterisk:

[Aug 23 17:49:44] WARNING[6889]: app_dial.c:1106 dial_exec_full: Unable to create channel of type 'SIP' (cause 42 - Switching equipment congestion)
[Aug 23 17:49:44] ERROR[6893]: rtp.c:1884 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files
[Aug 23 17:49:44] ERROR[6893]: rtp.c:1884 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files
[Aug 23 17:49:44] WARNING[6893]: chan_sip.c:4380 sip_alloc: Unable to create RTP audio and video session: Too many open files
[Aug 23 17:49:44] ERROR[6893]: chan_sip.c:15643 sip_request_call: Unable to build sip pvt data for '192.168.2.3' (Out of memory or socket error)


You would probably say, hey this is an already known error. Can´t you read faqs?
"Too many open files".
- So, according to the faqs, ulimit should be used.

But ulimit shows unlimited, I set it to 65000, well nothing changed, still 83 concurrent calls.

- What can be done next:

/etc/security/limits.conf

root            soft    nofile          4096
root            hard    nofile          8196
asterisk        soft    nofile          4096
asterisk        hard    nofile          8196

=> nothing changed.

- raising some parameters according to a performance article:

sysctl -w net.ipv4.neigh.default.gc_thresh3=262144
echo 262144 > /proc/sys/fs/file-max
echo 131072 > /proc/sys/kernel/threads-max
echo 111616 > /proc/sys/net/core/wmem_default
echo 4194304 > /proc/sys/net/core/wmem_max
echo 111616 > /proc/sys/net/core/rmem_default
echo 4194304 > /proc/sys/net/core/rmem_max
echo 4096 > /proc/sys/net/core/netdev_max_backlog
echo 131072 > /proc/sys/net/ipv4/tcp_max_tw_buckets
echo 16384 65535 > /proc/sys/net/ipv4/ip_local_port_range
echo 0 >> /proc/sys/net/ipv4/ip_forward

=> nothing changed.




How can the open files be changed within archlinux? Is it another failure?

thanks in advance

Kin

Offline

#2 2007-08-23 18:08:21

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: to many open files error + asterisk

I get these errors in Asterisk too but also in Astlinux..

I guess you should try the same amount of calls with Astlinux and see if there is a difference.

Offline

Board footer

Powered by FluxBB