Skip navigation
Vilius Šumskas
Currently Being Moderated

FMS 4.5 livepkgr application crashes Linux server by using all memory

Feb 18, 2014 11:54 AM

Tags: #memory #live #hls #server #linux #fms_4.5

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points