Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast Status page timout

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Sun Aug 23, 2009 12:39 pm    Post subject: Icecast Status page timout Reply with quote

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 Sad

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Aug 23, 2009 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Sun Aug 23, 2009 4:05 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sun Aug 23, 2009 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Sun Aug 23, 2009 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sun Aug 23, 2009 6:02 pm    Post subject: Reply with quote

As I said above - /usr/local/etc/icecast.xml.
Back to top
View user's profile Send private message Visit poster's website AIM Address
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Sun Aug 23, 2009 6:07 pm    Post subject: Reply with quote

ns2014512:~# /usr/local/etc/icecast.xml
-bash: /usr/local/etc/icecast.xml: No such file or directory
ns2014512:~#
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sun Aug 23, 2009 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
gazzagood



Joined: 03 Sep 2008
Posts: 42

PostPosted: Sun Aug 23, 2009 6:24 pm    Post subject: Reply with quote

No, not done that yet.

You will have to bare with me, never done it this way before, always used the basic package Embarassed

could you guide me on how to do that?
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sun Aug 23, 2009 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber