High CPU Usage 2.17.0 - 700% on 12 core Server

This is an on Prem CE deployment of 2.17.0
with following config
{
“VERSION”: “2.17.0”,
“DOMAIN_OR_PUBLIC_IP”: “https://ms.xyz.com”,
“HTTPS_PORT”: 4443,
“OPENVIDU_PUBLICURL”: “https://ms.xyz.com:4443”,
“OPENVIDU_CDR”: false,
“OPENVIDU_STREAMS_VIDEO_MAX_RECV_BANDWIDTH”: 0,
“OPENVIDU_STREAMS_VIDEO_MIN_RECV_BANDWIDTH”: 300,
“OPENVIDU_STREAMS_VIDEO_MAX_SEND_BANDWIDTH”: 0,
“OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH”: 300,
“OPENVIDU_STREAMS_FORCED_VIDEO_CODEC”: “VP8”,
“OPENVIDU_STREAMS_ALLOW_TRANSCODING”: false,
“OPENVIDU_SESSIONS_GARBAGE_INTERVAL”: 900,
“OPENVIDU_SESSIONS_GARBAGE_THRESHOLD”: 3600,
“OPENVIDU_RECORDING”: true,
“OPENVIDU_RECORDING_VERSION”: “2.17.0”,
“OPENVIDU_RECORDING_PATH”: “/opt/openvidu/recordings/”,
“OPENVIDU_RECORDING_PUBLIC_ACCESS”: true,
“OPENVIDU_RECORDING_NOTIFICATION”: “publisher_moderator”,
“OPENVIDU_RECORDING_CUSTOM_LAYOUT”: “/opt/openvidu/custom-layout/”,
“OPENVIDU_RECORDING_AUTOSTOP_TIMEOUT”: 120,
“OPENVIDU_WEBHOOK”: false
}

there was only one session active with 7 participants in it;
With 5 of them being an IP camera.

This is a 12 core Server;

Take a look to OpenVidu Docs

If you have adaptativebitrate=true (default value) every camera will be transcoded in the server.

If you have adaptativebitrate=false and the camera codec is H.264’s Constrained Baseline profile and OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=H264 is configured (OpenVidu Docs) then no transcoding will take place in OpenVidu reducing the CPU usage.

Best regards

1 Like