Jibri consuming heavy CPU for just 2 users

I’m getting a very high CPU use on my Jibri instance(hosted on a different server from the main jitsi-server).

Machine configuration:

  • Platform: AWS EC2
  • OS: Ubuntu 20.04
  • CPU: 4 Cores (t2.xlarge)
  • Memory: 16 GB

For a single user the 1 minute load average was around 3.0 when I joined with another user it shot upto 4.

Here is the screenshot for top command:

When I do the test with a 2 core machine. The load average jumps to 50 and the machine crashes in under a minute!

I had done a similar test about a month back and at that time per user jibri was taking 0.5 cores. The previous setup was jibri + an additional script to stream to multiple platforms.

Is there any recent change in jibri that could cause this spike? I came across some issues on forum and GitHub for memory leak but not on CPU. Has someone else faced this issue?

Yep, it got bumped to 1080p by default.

1 Like

I tried passing the resolution in config file (/etc/jitsi/jibri/jibri.conf ) like so:

ffmpeg {
        resolution = "1280x720"
        // The audio source that will be used to capture audio on Linux
        audio-source = "alsa"
        // The audio device that will be used to capture audio on Linux
        audio-device = "plug:bsnoop"
  }

and /etc/jitsi/jibri/xorg-video-dummy.conf

Virtual 1280 720

After this change the CPU usage was down but the video is getting cut off on YouTube:

I’ll try reverting to an older version on retry

You need to restart xorg.

systemctl restart jibri-xorg.service

1 Like

Worked like a charm. Thanks @Freddie !