When I was doing stress testing with mediasoup, I found that the memory usage of mediasoup-worker kept increasing when there were many consumers and the network bandwidth for consuming video reached the limit. After closing the room and all routers, the memory used by mediasoup-worker was not released. I cannot provide memory-related logs because if I start VALGRIND, the CPU usage will be very high and I cannot perform stress testing.
I would like to know why mediasoup-worker occupies so much memory and why the memory is not released after closing all routers?
I am experiencing the same issue when using a single router.
mediasoup version 3.11.26