i am doing some load tests and i had some problems with CPU consumption. The kurento-media-server is consuming 100% of cpu.
I’m testing 1: N with approximately 200 subscribers. I’m using openvidu default configurations. Only change default ports(4443-8888).
The publisher is using ManyCam to load a virtiualCam on browser (Chrome or Firefox)
Server:
AMD Ryzen 5 3600 Hexa-Core
64GB ram
var publisher = OV.initPublisher(“publisher”,
{
audioSource: undefined, // The source of audio. If undefined default microphone
videoSource: videoSource, // The source of video. If undefined default webcam
publishAudio: true, // Whether you want to start publishing with your audio unmuted or not
publishVideo: true, // Whether you want to start publishing with your video enabled or not
resolution: ‘640x480’, // The resolution of your video
//frameRate: 30, // The frame rate of your video
insertMode: ‘APPEND’, // How the video is inserted in the target element ‘video-container’
mirror: false // Whether to mirror your local video or not
});
Is it a problem in the conversion?
Thks a lot!
Doug
Hi Micael! Thks for feedback!
Oh yes, i read both topics, but as the topology is 1: N and the processing was increasing as new students entered, i thought there would be no relationship.
I will do the update and tomorrow I can perform a new test, and return here with the result.
Thanks again!
Hi Macael! Sorry man, i made a mistake in checking consumption.
Im using top and forgot that it sum the percentages of all my cores. I realized this when install Htop. Excuse me again.
So, for future reference:
Hi Micael! New test! Now up to 500 (1:N).
I did a test with 3 sessions and another with only 1 session.
In both, the connection limit was approximately 520. After that, the api returns error 500 (GET api/sessions) and no user can connect. Without doing anything, once the number of connections drops, other users are able to connect. Perhaps, a memory limitation on the JVM? I’ll look at the logs carefully to see if I can find anything.
Processor: AMD Ryzen 5 3600 Hexa-Core (dedicated server)
Memory: 64Gb
Test 2(1:N): 1-520 (only one session)
Memory usage: ~4GB
Cpu usage: ~40%
Test 3(1:N): 3 sessions and 520 connections
Memory usage: ~4GB
Cpu usage: ~40%
Hi Micael! Yep its simple. But the nginx.conf is inside of container image and its doesnt have a volume to map on docker-compose.yml. Im try to keep the files original as possible to not lose hard modifications when update openvidu. Is it possible take this options in a next release? Until that i will made my own modifications.
Thks again!
Hi Micael! I made a copy of nginx.conf from container and create a volume in docker-compose.yml to map this file in host machine. This is more simple to edit if i need increase this number again.
The default value in file is 1024. But, nginx used as a reverse proxy consume 2 connections per time. Running like a charm.
Thks a lot!
Doug
Hi @doug. No I required a simple redirect from Nginx from www to non-www and didn’t know how to accomplish this using docker-compose but it will be sorted in the next release so no need for your example. I had an SSL issue as raised here.
Thanks
Wes