Trouble with jibri via docker

Hello everyone. I am having some difficulty setting up jibri in docker.
Here are my server specs: 12 cores and 23 ram.
I lift three containers. When I run two simultaneous streams, everything works (sometimes YouTube says that the video is too slow), but when I add a third stream, everything stops working. Ram is fully loaded and the server freezes. I know that for one jibri you need 4 cores and 4 GB of ram. What could be the problem?

The latest version of Jibri defaults to 1080p resolution. This requires significantly more resources. You can scale down the resolution to 720p, otherwise, you’re likely to experience issues due to resource constraints.