[icecast] Icecast load tests - Too many open files
iceuse at kezako.net
iceuse at kezako.net
Thu Mar 13 12:48:07 UTC 2003
Hi all,
'm trying to setup an icecast server.
It works, bu I want to test how many clients it can serve.
Server: Icecast2 on PIII 933Mkz, 512Mo RAM
Linux Debian 3.0
One source sent by darkice (can't make ices2 working)
The problem is: "The server can't serve more than 1020 clients, because of a file limit"
[2003-03-13 14:18:50] WARN connection/_accept_connection accept() failed with error 24: Too many open files
The server load is quite low
14:42:36 up 53 min, 2 users, load average: 0.10, 0.21, 0.18
very low memory is used:
Atalone:/var/log/icecast# free -m
total used free shared buffers cached
Mem: 471 99 372 0 2 31
Atalone:/var/log/icecast# free -m
total used free shared buffers cached
Mem: 471 99 372 0 2 31
<p>not so much open files
Atalone:/var/log/icecast# lsof | wc -l
10849
(below the limit I set to 0x10000)
Atalone:/var/log/icecast# cat /proc/sys/fs/file-max
65536
My icecast config :
(extracts)
<limits>
<clients>3000</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>102400</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>20</source-timeout>
</limits>
<mount>
<mount-name>/radiofree.ogg</mount-name>
<username>source</username><password>srcpwd</password>
<max-listeners>2000</max-listeners>
</mount>
<p>Ethernet bandwidth used :
the server sent 20MBps and received less than 1MBps
My clients are wget clients :
wget -O /dev/null --quiet http://192.168.3.78:8000/radiofree.ogg
they consume the stream at the stream speed of 30KBps
Among all the clients, I have one real client plugged to speakers, to ckeck the stream. It is ok.
So....if somebody knowns how to get rid of that open file limit...
(the kernel limit of 65536 is set in a rcS.d script as told in Debian kernel docs)
Thanks,
Chris
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Icecast
mailing list