webrtc: Interceptor Memory Leak

Your environment.

  • Version: pionWebrtc v3.1.17, interceptor v0.1.5 and above
  • Browser: Chrome newest version
  • Other Information - Using simulcast feature with 16 video/audio tracks source

What did you do?

I’m building a livestreaming project and has a peer between chrome and pion (server), it was running by pm2. In my test case, i’m using ChromeA to peer and pushing video data to pionA, after that i forward data from pionA to pionB and pionB forward to ChromeB

Screen Shot 2022-01-24 at 18 14 20

PionA & PionB has only 1 simulcast peer, PionA is forwarding 16 video/audio data to PionB PionB is forwarding that data to ~100 ChromeB Clients.

In the img below, I checked my instance Mem between 2 version of pion interceptor, process running about 2mins ago. The Mem in v0.1.4 is stable and increase very low. But in v0.1.5 and above, it keep increasing too much and seem like never stop. It will get over ~30GB after 10mins

interceptor v0.1.4 Screen Shot 2022-01-24 at 16 00 46

interceptor v0.1.5 and above Screen Shot 2022-01-24 at 16 08 54

What did you expect?

The Mem should like interceptor v0.1.4

What happened?

Memory keep increasing in simulcast.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 22 (14 by maintainers)

Most upvoted comments