Wowza Community

Record Live Streaming - High memory consumption

Hey.

I am trying to record live streams 24 x 7 using Wowza Streaming Engine but memory consumption only grows over time. We are recording only one camera (702 x 480 resolution; 1 MB bitrate; transmitting in H.264) and saving in MP4 files. We followed this tutorial https://www.wowza.com/docs/how-to-record-live-streams-wowza-streaming-engine and this https://www.wowza.com/docs/how-to-do-performance-tuning trying to mitigate excessive memory consumption, but no success. Every fifteen days all memory is used and the Wowza process is killed by the Kernel.

Some others informations that may be useful:

  • Our server has 2 vCPUs and 4 GB RAM, an AWS instance t2.medium
  • Java Heap Size: 2765 MB
  • Java Garbage Collection Settings: G1 (Garbage First) collector (recommended) with -XX:+UseG1GC -XX:MaxGCPauseMillis=100
  • Wowza Streaming Engine Version: 4.7.2.02 (build 21159)
  • Operating system: Ubuntu 16.04.3

Could someone tell me if this behavior is normal? What are the minimum requirements for me to be able to record a camera with this settings? And to record 20 cameras like that?

Thanks in advance.