# High CPU Usage 2.17.0 - 700% on 12 core Server

**URL:** <https://openvidu.discourse.group/t/high-cpu-usage-2-17-0-700-on-12-core-server/2897>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [April 7, 2021, 8:18am UTC](https://openvidu.discourse.group/t/high-cpu-usage-2-17-0-700-on-12-core-server/2897 "2021-04-07T08:18:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [April 7, 2021, 8:18am UTC](https://openvidu.discourse.group/t/high-cpu-usage-2-17-0-700-on-12-core-server/2897/1 "2021-04-07T08:18:55Z")

</div>

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://ms.xyz.com)”,  
“HTTPS\_PORT”: 4443,  
“OPENVIDU\_PUBLICURL”: “[https://ms.xyz.com:4443](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;

 ![usage](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/4/43bbf3247e641e1992665dc32325495d06067fd2.jpeg)

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [April 7, 2021, 11:03am UTC](https://openvidu.discourse.group/t/high-cpu-usage-2-17-0-700-on-12-core-server/2897/2 "2021-04-07T11:03:45Z")

</div>

Take a look to [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/advanced-features/ip-cameras/#adaptativebitrate)

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](https://docs.openvidu.io/en/2.17.0/reference-docs/openvidu-config/)) then no transcoding will take place in OpenVidu reducing the CPU usage.

Best regards
