We deploy openvidu server on a server with 48GB RAM, however we got error “OOM(out of memory) killer” issue, and which cause the service corrupt. The out of memory error is caused by ffmpeg process during recording video. You can see in the below logs,
##header fields
Dec 5 11:52:10 cps-ms01 kernel: [12071.088015] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name
I found that it is very easy to get the issue in our testbed, just create one room session and only one participants in the room. The memory usage keep increase from 500M to 1.5 G in only 5 minutes. You can see the docker stats, the CPU usage very high. However, not easy to repeat the issue in production site. Do you think it is related to CPU performance?
We’ve never experienced or received any report of Out of Memory errors, but we will take a look. The COMPOSED recording use intensively the CPU. If the problem is related with ffmpeg buffer, maybe more CPUs instead of RAM can solve the issue.
I’ll try to replicate and see the problem when available.