Streams Getting Stuck When Running Multiple Mediasoup Rooms in Parallel

Hi everyone,

I’ve built a live classroom application using Mediasoup, and everything worked smoothly during initial tests with a single class. However, when multiple classrooms (rooms) are active at the same time, the streams start getting stuck or freezing intermittently.

I’m running the server on a 10-core GCP VM, and each room has its own set of producers and consumers managed through Socket.io.

Has anyone faced a similar issue or can suggest what might be causing this? Could it be related to worker load balancing, CPU saturation, or network throughput limits?

Any insights or debugging tips would be really helpful.

Thanks in advance!

The mediasoup worker is single core, check your task manager you’ll probably see the core overwhelmed. Scaling isn’t easy. If CPU seems fine check that network is fast enough.