1 Reply Latest reply: Feb 22, 2014 6:01 AM by Vilius Šumskas RSS

    FMS 4.5 livepkgr application crashes Linux server by using all memory

    Vilius Šumskas

      We are running FMS 4.5.7 with standard livepkgr application for live RTMP and HLS streaming (HDS module disabled). For some reason after about 30 minutes httpd process starts using more and more system memory and in about a minute or so it crashes the server because it drains memory completely. It doesn't matter how many users are connected to the stream. What I noticed is that if there is no HLS users (or HLS is disabled) everything is fine, however it is enough to connect at least one HLS user to the server after 30 minutes and the memory usage starts rising. If the user connects into 0-30 minute window it works.

       

      I have tried to play with stream recording options in Event.xml for that stream but it didn't help. I have tried to record into one file and into segments.

       

      Our server has 32GB of RAM.

       

      We have modified Apache configuration file to Sandbox HLS streams at instance level, but it should not be a problem, shouldn't it?

       

      <Location /hls-live>
          HLSHttpStreamingEnabled true
          HttpStreamingLiveEventPath "../applications/livepkgr/events/_definst_"
          HttpStreamingURLSandboxLevel "Inst"
          HttpStreamingContentPath "../applications"
          HLSMediaFileDuration 8000
          HLSSlidingWindowLength 6
          HLSFmsDirPath ".."
          HLSM3U8MaxAge 2
          HLSTSSegmentMaxAge -1
          HLSMaxEventAge 300
          HttpStreamingUnavailableResponseCode 503

          Options -Indexes FollowSymLinks
      </Location>

       

      P.S. We also run vod application in parallel for vod RTMP and HLS streaming. Both HLS and RTMP for VOD works just fine.