Skip to main content
June 8, 2015
Question

AMS 5.0.8 FLV Segment Cache is full & Message callback is not set

  • June 8, 2015
  • 0 replies
  • 726 views

So after doing a ton of searches and seeing this problem listed around but no real fixes I thought I would bring this up yet again.

We have an app that uses a Windows based AMS (5.0.8) as essentially a web based VCR. It's normally fine but under heavy load the FLV Cache eventually fills up, drops connections, and then as our app trys to re-connect we end up in a almost race condition where the cache doesn't seem to let go quick enough to accept more connections/re-connections and then eventually just halts and only way to fix it is to restart AMS, or at least reload that application.

I've been playing around with the configs but haven't found any setting that help out yet. You can increase the SERVER.FLVCACHE_MAXSIZE to a good amount of RAM but eventually you hit the same issue. I've tried the typical settings you find everywhere, and tried changing

CONFIG FILE Server.xml

<AutoCloseIdleClients enable="true">

<FLVCachePurge>1</FLVCachePurge>

<FLVCache retryOnCacheFull="false">

<ApplicationGC>1</ApplicationGC>

<FLVCacheSize>25</FLVCacheSize>

<CoreGC>30</CoreGC>

CONFIG FILE ams.ini

SERVER.FLVCACHE_MAXSIZE=6000

Application.xml

    <LifeTime>

      <RollOver></RollOver>

      <MaxCores></MaxCores>

    </LifeTime>

Nothing has helped out yet in my testing. I know a lot of people just restart their AMS servers everyday (which we do also) but that doesn't help when the server is under load and the issue crops up. Has anyone found a good way to fix and or work around this? We have been working with the Admin api to at least log the stats down, and may have to write a script around the admin API to restart the app on cache full (though that is horrible!). I know this has been beaten around for previous versions of AMS, and has been mentioned for version 5 also. So hoping someone has found something!

    This topic has been closed for replies.