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

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
interceptor v0.1.5 and above
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)
NackInterceptor on https://github.com/pion/interceptor/tree/36d6df80197310a2da2fc8dc626ae43998da1535 this commit (one before https://github.com/pion/interceptor/tree/ec82d5387a9c4adb724f06440ae5bb2a6589fabe)