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 

Serious memory leak / cpu useage - ever increasing relays

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



Joined: 30 Jun 2010
Posts: 25
Location: Wales, UK

PostPosted: Sat Jul 31, 2010 1:55 pm    Post subject: Serious memory leak / cpu useage - ever increasing relays Reply with quote

I've got a serious issue where the amount of relay connections increases minute by minute, eating up CPU to 92%

This is how I want my setup to work, and how I think I've configured it.
/AutoDJ stream is provided by ices
/dj1 is mount DJ's connect to, to stream live shows
/stream is the mount point that's always available to the public and never changes.

Listeners connect to /Stream. this is provided by a relay, relaying /dj1. dj1 has a fallback moount to /autodj. From other posts and suggestions, this is the correct way of going about it?

When I initially start the server and the ices server, no relays show up, but autoDJ is playing fine. If i connect using my flash web player it plays fine. This runs off the /stream mount so the relay must be working? even though in the icecast admin is says no relay connection :

source_client_connections 1
source_relay_connections 0
source_total_connections 1

gradually over the next few minutes the relay connections increases and increases. As soon as this happens /dj1 becomes visible as a mount, even though no DJ is connected to dj1. It's my understanding that /stream should be visible at all times as the relays is providing this mount. But it isnt. all thats listed is /autodj and /dj1.
I've played around to no end with the icecast.xml file and it just cant get it working. We're at the point where we need the station to go live, so I'd be happy to pay somebody to take 10 minutes and write a config file for me from scratch just to get it working. Can anybody help? Please?
Back to top
View user's profile Send private message AIM Address
junglised



Joined: 30 Jun 2010
Posts: 25
Location: Wales, UK

PostPosted: Sat Jul 31, 2010 2:10 pm    Post subject: Reply with quote

heres my config file


Code:
<icecast>
    <limits>
        <clients>100</clients>
        <sources>3</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>0</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>
        <!-- Sources log in with username 'source' -->
  <source-password>hackme</source-password>
        <!-- Relays log in username 'relay' -->
       <!--<relay-password>relaypassword</relay-password> -->

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>hackme</admin-password>
    </authentication>

    <!-- set the mountpoint for a shoutcast source to use, the default if not
         specified is /stream but you can change it here if an alternative is
         wanted or an extension is required -->
    <shoutcast-mount>/stream</shoutcast-mount>
 

    <!-- Uncomment this if you want directory listings -->
   
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
 

    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->
    <hostname>78.129.236.128</hostname>

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
   <!--   <shoutcast-mount>/stream</shoutcast-mount> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

    <!--<master-server>127.0.0.1</master-server>-->
    <!--<master-server-port>8001</master-server-port>-->
    <!--<master-update-interval>120</master-update-interval>-->
    <!--<master-password>hackme</master-password>-->

    <!-- setting this makes all relays on-demand unless overridden, this is
         useful for master relays which do not have <relay> definitions here.
         The default is 0 -->
    <!--<relays-on-demand>1</relays-on-demand>-->

 
 <relay>
        <server>127.0.0.1</server>
        <port>8000</port>
        <mount>/dj1</mount>
        <local-mount>/stream</local-mount>
        <on-demand>0</on-demand>
        <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
    </relay>


    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords -->

    <mount>
        <mount-name>/stream</mount-name>
        <password>hackme</password>
        <burst-size>65536</burst-size>
    <fallback-mount>/dj1</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>0</fallback-when-full>
   
   
        <hidden>0</hidden>
        <no-yp>0</no-yp>

      <public>1</public>
     
    </mount>
   
      <mount>
        <mount-name>/dj1</mount-name>
        <password>hackme</password>
        <max-listeners>100</max-listeners>
        <dump-file>/archive/%d_%m_%Y-%H%M_%S.mp3</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/autodj</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>0</fallback-when-full>
       
       <!-- <intro>/example_intro.ogg</intro> -->
        <hidden>1</hidden>
        <no-yp>1</no-yp>
 
    </mount>
   
   
     <mount>
        <mount-name>/audodj</mount-name>
        <password>hackme</password>
        <burst-size>65536</burst-size>
        <hidden>1</hidden>
        <no-yp>1</no-yp>

      <public>0</public>
     
    </mount>
 
   
 
<!--
    <mount>
        <mount-name>/auth_example.ogg</mount-name>
        <authentication type="url">
            <option name="mount_add"       value="http://myauthserver.net/notify_mount.php"/>
            <option name="mount_remove"    value="http://myauthserver.net/notify_mount.php"/>
            <option name="listener_add"    value="http://myauthserver.net/notify_listener.php"/>
            <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
        </authentication>
    </mount>

    -->

    <fileserve>1</fileserve>

    <paths>
      <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/local/share/icecast</basedir>

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>/usr/local/var/log/icecast</logdir>
        <webroot>/usr/local/share/icecast/web</webroot>
        <adminroot>/usr/local/share/icecast/admin</adminroot>
        <!-- <pidfile>/usr/local/share/icecast/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>
        <!-- <playlistlog>playlist.log</playlistlog> -->
         <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
         <logsize>10000</logsize> <!-- Max size of a logfile -->
        <!-- If logarchive is enabled (1), then when logsize is reached
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
             otherwise it will be moved to [error|access|playlist].log.old.
             Default is non-archive mode (i.e. overwrite)
        -->
       <logarchive>0</logarchive>
    </logging>

    <security>
        <chroot>0</chroot>
     
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
        </changeowner>
     
    </security>
</icecast>
Back to top
View user's profile Send private message 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