Skip to main content
Known Participant
May 29, 2011
Question

Application drops: Еxperienced 1 failure[s]

  • May 29, 2011
  • 1 reply
  • 1109 views

Hi! I had a problem - the server disconnects all clients of application at different time intervals.

master.00.log says:

2011-05-29 07:23:02 913 (i)2581223 Core (1319) is no longer active. -

2011-05-29 07:23:02 913 (w)2581256 Core (1319) _defaultRoot_:_defaultVHost_:::_2 experienced 1 failure! -

2011-05-29 07:23:04 913 (i)2581259 Recovering core _defaultRoot_:_defaultVHost_:::_2 with 1 failure after 1 seconds! -

2011-05-29 07:23:04 913 (i)2581221 Core (9872) started, arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app  -inst  -tag "_2" -conf "/opt/adobe/fms/conf/Server.xml" -name "_defaultRoot_:_defaultVHost_:::_2". -

.

.

/var/log/messages says:
.
May 29 07:22:58 L603 kernel: [132821.278706] fmscore[1385] general protection ip:7f809c3c1cff sp:7f809c12cf90 error:0 in libasc.so[7f809c23c000+275000]
May 29 07:23:04 L603 Adaptor[9872]: Listener started ( _defaultRoot_ ) : 127.0.0.1:19352 (rtmfp-core)/v4
May 29 07:23:04 L603 Adaptor[9872]: Listener started ( _defaultRoot_ ) : 213.155.22.176:19352 (rtmfp-core)/v4
May 29 07:23:04 L603 Adaptor[9872]: Public rtmfp-core addresses for listener _defaultRoot_ are: 127.0.0.1:19352;213.155.22.176:19352
How can I find the cause of the error and it is better to fix it? )
    This topic has been closed for replies.

    1 reply

    Lokki7Author
    Known Participant
    May 29, 2011

    I found out that the error occurs after a some number of calls pushData:

    application.interval[streamObj.name] = setInterval(application.pushData, 200, streamObj.name);

    Even if application.pushData has an empty body!

    Also sometimes there is another error in /var/log/messages with the same result:

    May 29 17:18:20 L603 kernel: [168543.420719] fmscore[20496]: segfault at 0 ip (null) sp 00007f0c260cdf88 error 14 in fmscore[400000+ab4000]

    If I set RuntimeSize to some big number, then between the drops is more time but still the error still occurs even if RuntimeSize takes all my memory.

    Nikhil_Kalyan
    Participating Frequently
    May 31, 2011

    Are you using the ClearInterval along with SetInterval , Can you also give us the code snippet where this is occuring so that we can reproduce if possible ?

    Thank you !

    Lokki7Author
    Known Participant
    May 31, 2011

    application.onAppStart = function()

    {

        trace("Starting Live Service...");

    application.group = new Array();

    application.interval = new Array();

    application.netGroup = new Array();

    }

    application.onPublish = function (clientObj, streamObj)

    {

        trace("The stream " + streamObj.name + " now publishing");

    s = Stream.get("raw:" + streamObj.name);  // record stream to raw format

    s.play(streamObj.name);

    s.record("record");

    var groupSpecifier = new GroupSpecifier("com.gg." + streamObj.name);

    groupSpecifier.postingEnabled = true;

    groupSpecifier.serverChannelEnabled = true;

    groupSpecifier.routingEnabled = true;

    groupSpecifier.objectReplicationEnabled = true;

    groupSpecifier.makeUnique();

    application.group[streamObj.name] = groupSpecifier.toString();

    trace(streamObj.name + " = " + application.group[streamObj.name]);

    var nc = new NetConnection();

    nc.connect("rtmfp://localhost:53333/dvr");

    nc.onStatus = function(info){

    trace(info.code);

        if (info.code == "NetConnection.Connect.Success") {

    var ng = new NetGroup(this, application.group[streamObj.name]);

    application.netGroup[streamObj.name] = ng;

    ng.onStatus = function(info){

    }

            }

        }

    application.interval[streamObj.name] = setInterval(application.pushData, 500, streamObj.name);

    var shObj = SharedObject.get(streamObj.name, false);

    shObj.clear();

    shObj.setProperty("group", application.group[streamObj.name]);

    }

    application.pushData = function (streamName) {

         //empty body for testing

    }

    application.onUnpublish = function (clientObj, streamObj)

    {

    trace("The stream " + streamObj.name + " now unpublishing");

    clearInterval(application.interval[streamObj.name]);

    }

    Then I starting streaming using FMLE 3.2 with bitrate 800-1500. Everything works fine from 30 minutes to a couple of hours:

    May 30 05:45:01 L603 kernel: [213343.876359] fmscore[7880]: segfault at 0 ip 00007f01e76cdab9 sp 00007f01e740c5f0 error 4 in libasc.so[7f01e750f000+275000]

    May 30 07:48:20 L603 kernel: [220742.948279] fmscore[8638] general protection ip:7f89d4f4bcff sp:7f89d4cb6f90 error:0 in libasc.so[7f89d4dc6000+275000]

    May 31 03:50:36 L603 kernel: [292878.958233] fmscore[11403] general protection ip:7f303a679cff sp:7f303a2e3f90 error:0 in libasc.so[7f303a4f4000+275000]

    May 31 05:00:44 L603 kernel: [297086.820829] fmscore[14788] general protection ip:7fef1ab31cff sp:7fef1a89cf90 error:0 in libasc.so[7fef1a9ac000+275000]

    May 31 05:30:25 L603 kernel: [298868.411675] fmscore[21600] general protection ip:7fd87d4ddcff sp:7fd87d248f90 error:0 in libasc.so[7fd87d358000+275000]

    'watch free -m' shows a gradual decrease in available RAM

    4096mb total RAM installed, RuntimeSize=1000000. If I set RuntimeSize=1000 then the application falls much faster.