red5-server icon indicating copy to clipboard operation
red5-server copied to clipboard

Red5 memory leak

Open anvishwakarma opened this issue 7 years ago • 2 comments

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

  1. Stream more than 20 RTMPS stream continuously

anvishwakarma avatar Sep 07 '18 04:09 anvishwakarma

I am experiencing the same with same environment and Java and Red5 version v1.0.9-M2

svonian avatar Jan 03 '19 09:01 svonian

I suggest retesting with v1.1.1

mondain avatar May 29 '19 19:05 mondain