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 

Slow Listeners

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



Joined: 10 Jan 2011
Posts: 14

PostPosted: Mon Sep 12, 2011 1:09 pm    Post subject: Slow Listeners Reply with quote

I have about 6 stations running 10 streams and only one is giving me a slow listener count. No one else has slow listeners except one and they have 29. They are all set up exactly the same with ice-samplerate=44100;ice-bitrate=64;ice-channels=2
What causes Slow Listeners?
Thanks in advance!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Sep 12, 2011 1:28 pm    Post subject: Reply with quote

The count increases when a listener drops off the end of the queue. So they are at least <queue-size> bytes behind. The count never decreases.

It may indicate that the queue is too small but a 64k stream is not large, for a default 512k queue, that's over 60 seconds lag allowed. It's more likely to indicate a network outage most likely at the receivers end.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shongale



Joined: 10 Jan 2011
Posts: 14

PostPosted: Mon Sep 12, 2011 1:47 pm    Post subject: Reply with quote

I assUme by receiver you mean the end listener. So how do I fix?

Here is my Limits Section Hopefully it helps.

<limits>
<clients>5000</clients>
<sources>500</sources>
<threadpool>5</threadpool>
<queue-size>1524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>

<!-- DO I NEED TO DISABLE THIS?? -->
<!-- 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>
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Sep 12, 2011 2:19 pm    Post subject: Reply with quote

yes, receiver being the end listener. hmm, with a queue-size of 1.5Meg you should find plenty of flexibility. The burst on connect is ignored.

If it's the same connection that is always dying then you should investigate it more. A throttling link would show as a client which increases lag so check the listclients admin page or the netstat output for the send buffer usage. I'm sure the error log reports the IP of a dropped listener so it may be be easier to filter on that.

I would find it hard to believe that the default tcp settings would be throttling a 64k stream but obviously if there are errors triggering re-transmissions and timeouts then that will effect performance. The only server issue that I've seen showing like this is mbuf limitations on BSD

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shongale



Joined: 10 Jan 2011
Posts: 14

PostPosted: Mon Sep 12, 2011 2:55 pm    Post subject: Reply with quote

karlH: Once again thanks for your help.
A small sample of my access.log file
Where can I find the header info or the field info?
What does the code after the 200 mean?

69.247.177.72 - - [12/Sep/2011:07:22:11 -0700] "GET /admin/metadata HTTP/1.0" 200 177 "-" "(Mozilla Compatible)" 0
193.218.105.163 - - [12/Sep/2011:07:22:31 -0700] "GET /RetroRadioCalifornia.net HTTP/1.0" 200 13162 "-" "-" 1
193.218.105.163 - - [12/Sep/2011:07:22:52 -0700] "GET /TakilmaFM HTTP/1.0" 200 13191 "-" "-" 1
193.218.105.163 - - [12/Sep/2011:07:22:58 -0700] "GET /tkFMslow HTTP/1.0" 200 13272 "-" "-" 1
69.247.177.72 - - [12/Sep/2011:07:23:01 -0700] "GET /admin/metadata HTTP/1.0" 200 177 "-" "(Mozilla Compatible)" 0
193.218.105.163 - - [12/Sep/2011:07:23:12 -0700] "GET /takilmafm.ogg HTTP/1.0" 200 11398 "-" "-" 1
60.241.81.131 - - [12/Sep/2011:07:23:17 -0700] "GET /RetroRadioCalifornia.net HTTP/1.1" 200 563348 "-" "TuneIn Radio" 255
69.247.177.72 - - [12/Sep/2011:07:24:02 -0700] "GET /admin/metadata HTTP/1.0" 200 177 "-" "(Mozilla Compatible)" 0
69.247.177.72 - - [12/Sep/2011:07:28:07 -0700] "GET /admin/metadata HTTP/1.0" 200 177 "-" "(Mozilla Compatible)" 0

Once again thanks for your help!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Sep 12, 2011 3:10 pm    Post subject: Reply with quote

The access log won't tell you anything significant (it's basically CLF) with this as it only reports the amount sent (after the 200) and the duration (last). The error log can say more information about what's happening with the server itself. For this though it will only say who is being dropped not why, because it's impossible for icecast to know what is wrong if there is no response.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shongale



Joined: 10 Jan 2011
Posts: 14

PostPosted: Tue Sep 13, 2011 3:16 pm    Post subject: Reply with quote

I have still not resolved the problem. All I can do is reset the stream mountpoint.
Here is my error.log file since yesterday. I see nothing that relates to slow listeners. But I don't know what most of it means.

[2011-09-12 09:34:15] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Radio_Memphis" No such file or directory
[2011-09-12 09:34:19] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Radio_Memphis" No such file or directory
[2011-09-12 09:34:22] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Radio_Memphis" No such file or directory
[2011-09-12 10:39:33] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Downtown_Radio" No such file or directory
[2011-09-12 12:27:40] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/usr/local/share/icecast/admin/xspf.xsl": No such file or directory
[2011-09-12 12:27:40] EROR xslt/xslt_transform problem reading stylesheet "/usr/local/share/icecast/admin/xspf.xsl"
[2011-09-12 12:41:09] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-12 13:28:08] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-12 15:03:54] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/FreeWillRadio.org" No such file or directory
[2011-09-12 15:04:36] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-12 16:12:03] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/FreeWillRadio.org" No such file or directory
[2011-09-12 19:39:32] WARN source/get_next_buffer Disconnecting source due to socket timeout
[2011-09-12 19:39:34] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Radio_Memphis" No such file or directory
[2011-09-12 19:55:58] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-12 19:55:58] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/alternate" No such file or directory
[2011-09-12 20:37:51] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Downtown_Radio" No such file or directory
[2011-09-12 20:38:22] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/Downtown_Radio" No such file or directory
[2011-09-12 23:36:04] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 00:13:03] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 01:12:24] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/3-Gen" No such file or directory
[2011-09-13 01:20:44] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 03:26:39] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 04:13:42] WARN connection/source_startup Mountpoint /Radio_Memphis in use
[2011-09-13 04:13:48] WARN source/get_next_buffer Disconnecting source due to socket timeout
[2011-09-13 06:45:29] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 06:51:32] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory
[2011-09-13 07:45:02] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/robots.txt" No such file or directory

Once again thanks.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Sep 13, 2011 8:38 pm    Post subject: Reply with quote

log level is too low, the increase in the count is not strictly speaking a warning, you will need at least level 3 to get the info messages.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shongale



Joined: 10 Jan 2011
Posts: 14

PostPosted: Wed Sep 14, 2011 6:34 pm    Post subject: Reply with quote

Thanks karlH. I changed it to 3 (it was 2) and I will monitor to see what's happening. Be in touch.
Back to top
View user's profile Send private message
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