red5-server
red5-server copied to clipboard
Red5 memory leak
Issue
Red5 memory leak during live h264 video publish
Short description
We have two red5 instance running parallely. Memory consumption on one instance is normal(16%) with 10 streams. However, on second instance memory consumption is around 55% with 20 streams. When we analysed the heap dump of second instance we found 1,968,245,216 instances of class org/red5/codec/IVideoStreamCodec$FrameData . We suspect that these are not garbage collected. So, it total these objects are consuming 2GB of heap.
Environment
Operating system and version: Ubuntu 16.04 Java version: java 8 Red5 version: v1.0.10-M9
Expected behavior
Heap memory usage should be same on both the red5 instances.
Actual behavior
Heap memory usage grows for sometime and contains stale zero size objects.
Steps to reproduce
- Stream more than 20 RTMPS stream continuously
I am experiencing the same with same environment and Java and Red5 version v1.0.9-M2
I suggest retesting with v1.1.1