[Icecast] icecast2 mountpoints maximum
Henri Zikken
henri.zikken at deltasolutions.nl
Wed Oct 5 15:02:04 UTC 2005
We are using icecast as stream-relay for a true narrowcast solution
we've developed. The idea behind the system is that each individual
client gets it's own mountpoint.
Basically we have an application that creates streams. Its written in
c++ and uses libshout to handle connecting to icecast.
Everything works fine, as long as we keep the number of mountpoints
below 347. As soon as we try to create more mountpoints, it stops, as
in, it never returns a mountpoint.
in our application, we create a new mountpoint by doing:
shout = shout_new()
this never returns after the 347th stream, so our application waits
indefinatly for icecast to return a mountpoint.
Our icecast2.xml reads as follows:
<icecast>
<limits>
<clients>3000</clients>
<sources>3000</sources>
<threadpool>30</threadpool>
<queue-size>102400</queue-size>
<client-timeout>300</client-timeout>
<header-timeout>300</header-timeout>
<source-timeout>300</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>12800</burst-size>
</limits>
<authentication>
<source-password>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>do_not_hackme</admin-password>
</authentication>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>
The icecast version is: 2.2.0
The last part of the (error.log) logfile reads:
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node
source_total_connections (346)
[2005-10-05 16:59:23] DBUG stats/process_source_event new node
listeners (0)
[2005-10-05 16:59:23] DBUG stats/process_source_event new node
server_name ("10308")
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node
connections (347)
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node
source_client_connections (347)
[2005-10-05 16:59:23] DBUG stats/process_source_event new source stat
/10309
[2005-10-05 16:59:23] DBUG stats/process_source_event new node public (0)
[2005-10-05 16:59:23] DBUG stats/process_source_event new node
listenurl (http://localhost:8000/10309)
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node sources
(347)
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node
source_total_connections (347)
[2005-10-05 16:59:23] DBUG stats/process_source_event new node
listeners (0)
[2005-10-05 16:59:23] DBUG stats/process_source_event new node
server_name ("10309")
[2005-10-05 16:59:23] DBUG stats/modify_node_event update node
connections (348)
Is this a hard-coded limit of sources, or are we doing something wrong?
Regards,
Henri Zikken
More information about the Icecast
mailing list