iceuse@kezako.net
2004-Aug-06 14:23 UTC
[icecast] Icecast load tests - Too many open files
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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
On Thursday 13 March 2003 23:48, iceuse@kezako.net wrote:> 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 filesLook at the output of "ulimit -n" - that's the maximum number of per-process file descriptors, it's 1024 by default on most linux systems. I don't recall how to change that (except as root), I'm sure you can find some documentation. I've tested icecast up to about 3000 clients on an old p2 machine of mine, and it could probably go further without much trouble. Mike --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi Mike, it works fine with ulimit. The server is now outputting 80MBps of stream (serving 2700 clients) Chris Michael Smith wrote:>On Thursday 13 March 2003 23:48, iceuse@kezako.net wrote: > > >>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 >> >> > >Look at the output of "ulimit -n" - that's the maximum number of per-process >file descriptors, it's 1024 by default on most linux systems. I don't recall >how to change that (except as root), I'm sure you can find some >documentation. > >I've tested icecast up to about 3000 clients on an old p2 machine of mine, and >it could probably go further without much trouble. > >Mike > >--- >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@xiph.org' >containing only the word 'unsubscribe' in the body. No subject is needed. >Unsubscribe messages sent to the list will be ignored/filtered. > >. > > ><p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi Michael, thanks, this has solved my problem. The server is now outputting 80MBps. Chris Michael Smith wrote:>Look at the output of "ulimit -n" - that's the maximum number of per-process >file descriptors, it's 1024 by default on most linux systems. I don't recall >how to change that (except as root), I'm sure you can find some >documentation. > >I've tested icecast up to about 3000 clients on an old p2 machine of mine, and >it could probably go further without much trouble. > >Mike > > ><p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.