| View previous topic :: View next topic |
| Author |
Message |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Sun Aug 23, 2009 12:39 pm Post subject: Icecast Status page timout |
|
|
I am getting a timout on the status page at high loads, im talking a couple of hundred people connecting at one time.
It takes around a minute or 2 to connect to the streams, and the status page does not always respond.
here is a copy of the config:
<icecast>
<limits>
<clients>5000</clients>
<sources>6</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>
<authentication>
<admin-user>flfooty</admin-user>
<admin-password>544ajbra89</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<hostname>91.121.120.198</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
</logging>
</icecast>
obviously not including my stream links etc.
Customers are complaining that they cannot always connect to streams
there are no errors in the error.log what so ever, i fixed everything that was being logged last night, however its still slow.
heres the link:
http://91.121.120.198:8000/
Regards |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Aug 23, 2009 3:59 pm Post subject: |
|
|
2.3.2 does still use a staging area for header processing which does slow things down. I'd like to hear feedback on my latest work for this, I've reduced the latencies of internal handling so that aspect should be much better.
www.icecast.pwp.blueyonder.co.uk/icecast-2.3.2-kh13pre.tar.gz
karl. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Sun Aug 23, 2009 4:05 pm Post subject: |
|
|
Hi,
Id love to give it a go, but my knowledge doesnt allow me to install it.
i simply run apt-get install icecast2 and install that version.
Running on debian  |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Sun Aug 23, 2009 5:29 pm Post subject: |
|
|
Hi gazzagood,
if you don't know how to compile sources yourself, and find and resolve dependencies, then the kh builds are probably not for you.
On Ubuntu (based on debian) in short, you need to run
$ sudo apt-get build-dep icecast2
That should install all dependencies for you, you may need to install liblame-dev (for MP3 support), as well.
If you build from sources, make sure that your paths and permissions are correct, as the .deb package does a lot of work for you.
On Ubuntu, the executable changes from /usr/bin/icecast2 to /usr/local/bin/icecast, the configuration file changes from /etc/icecast/icecast2.xml to /usr/local/etc/icecast.xml.
You need to modify /etc/init.d/icecast2 (if present) accordingly. There are other changes (permissions, mostly) you have to make, as well.
-Jason |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Sun Aug 23, 2009 5:49 pm Post subject: |
|
|
hi,
thanks for that, i have apt-get install with your info above, thats worked fine, however
/etc/icecast.xml, it cannot find that?
Regards |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Sun Aug 23, 2009 6:02 pm Post subject: |
|
|
| As I said above - /usr/local/etc/icecast.xml. |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Sun Aug 23, 2009 6:07 pm Post subject: |
|
|
ns2014512:~# /usr/local/etc/icecast.xml
-bash: /usr/local/etc/icecast.xml: No such file or directory
ns2014512:~# |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Sun Aug 23, 2009 6:16 pm Post subject: |
|
|
And did you do
$ sudo make install
in the icecast-2.3.2-kh13 directory as Karl directed you to do in your other thread? |
|
| Back to top |
|
 |
gazzagood
Joined: 03 Sep 2008 Posts: 42
|
Posted: Sun Aug 23, 2009 6:24 pm Post subject: |
|
|
No, not done that yet.
You will have to bare with me, never done it this way before, always used the basic package
could you guide me on how to do that? |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Sun Aug 23, 2009 6:58 pm Post subject: |
|
|
If you've never done this before you might want to try this on a test system, first.
Don't just blindly copy the steps below, read the man pages for each command and try to understand the output of each command:
- install a base system
- install build dependencies for icecast: sudo apt-get build-dep icecast2
- get the new sources: wget http://www.icecast.pwp.blueyonder.co.uk/icecast-2.3.2-kh13pre.tar.gz
- expand the sources: tar xzf icecast-2.3.2-kh13pre.tar.gz
- change to the newly created directory and compile the sources:
-- ./configure && make
- install the compiled source:
-- sudo make install
Browse the /usr/local tree for the new icecast files.
Installing a package via apt-get install will only give you the latest package that was included in your distribution - i.e. it's not Karl's responsibility, but the Debian team's. |
|
| Back to top |
|
 |
|