6 Replies Latest reply: Aug 21, 2012 7:20 PM by eugene! RSS

    Live AV chat architecture




      We have live AV chat app which assumes to have up to 50 online rooms with 500-600 people in each room. Our idea is only one people can broadcast video in the room, others will be able just see it.


      We have quite strong server with 1Gbit/sec bandwidth. If we will get that average stream is 300kbit/sec, it means that we can support ~3,5k connections (1Gbit * 1024 * 1024 / 300 kbit). Is it correct? But actually, when we have more than 500 connections on server, time to time we get connection rejects. Any ideas?


      Also, CPU and RAM usage is very low and I believe that server has enough resources to process more connections...


      Another problem is when into one chat room we have more 100 people, video begins to slow down and twitch. What it may be and what should we do to avoid such behavior?


      We use FMS 4.0 server and Centos 6 64bit architecture.

      We tried to use origin/edge architecture, but it seems it quite useless with live broadcasting...


      Please advice which architecture is the best for using such type of applications and what we must tweak in order to enhance our performance.



        • 1. Re: Live AV chat architecture

          Hi ,

             we have the same issue with fms archtecture , and we are doing some research about the architecture of fms servers.

          • 2. Re: Live AV chat architecture
            dejanp777 Community Member

            We also use FMIS, but for many to many live streams (video chat rooms). And we are planning to put logic on FMIS, and streams on Flash Media Streaming Server, what do you think about it?

            • 3. Re: Live AV chat architecture

              One thing that must be changed is runtimesize in application.xml. It's only 1mb, increase as required.


              I also have problems with a chat with >1500 users, connection drops and other stuff, ending to a "core has suffered 1 failure" and the core restarting and all the users being disconnected.


              I think it's a matter of configuring the server just because there are plenty of server resources left, but I'm lost here like you are.


              Maybe there's something to do with the maxiothreads (server.xml) I have posted recently.


              Any help would be really appreciated as well.

              • 4. Re: Live AV chat architecture
                dejanp777 Community Member

                Do you know how to detect if connection is dropped because of FMS?

                • 5. Re: Live AV chat architecture
                  D1FCOM Community Member

                  Unfortunately, I have no clue about this.


                  What I only know is that I'm having 1800 users connected and suddenly, it drops to 600 and eventually, to 0 (core no longer active)


                  But there is no log while the connections are dropped. No clues.


                  Seems that FMIS is not default configured to handle such amount of users and some tweaking is required.

                  • 6. Re: Live AV chat architecture
                    eugene! Community Member

                    Ok, guys. But anyone of you got situation when one stream listen more than 100 people and it began to slow down and twitch. If you need some additional info let me know.