ffmpeg taking CPU

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

ffmpeg taking CPU

Postby jaspersk » Wed Feb 07, 2018 7:36 pm

I have had my system running for about a month and a half. When I "check updates" it says I am running the latest version. In the past, I don't recall ffmpeg taking any CPU. It was only xeoma taking 15-20% CPU. However, now when I look at top ffmpeg is taking 30% in addition to xeoma. I restarted xeoma core service and it did not help. I assume this is not normal since it was not the case in the past. Can you help me figure out what might be going on? No one is connected to the system so I don't know what is going on. The system is running on Ubuntu 16.04 headless server.
jaspersk
 
Posts: 4
Joined: Fri Dec 29, 2017 3:17 pm

Re: ffmpeg taking CPU

Postby jaspersk » Wed Feb 28, 2018 4:27 pm

For anyone else checking this post, I determined that ffmpeg CPU was due to enabling the web server. I deleted the web server and ffmpeg disappeared. It is no longer taking cpu.

So feedback for the developer would be to fix web server so it doesn't work until there is a request at the port. The port that was configured in the Xeoma web server settings was not open on my firewall so I am confident there was no one requesting traffic from the port. Apache and Ngnix don't take CPU unless there is a request for a web page so why was the Xeoma web server eating CPU? Is there something else that I am missing?
jaspersk
 
Posts: 4
Joined: Fri Dec 29, 2017 3:17 pm

Re: ffmpeg taking CPU

Postby Admin_P » Fri Mar 02, 2018 10:34 am

Hello! Please note the 2 checkboxes in the "Web Server" settings: Turn on the broadcast with sound over WebRTC (Pro only) and Turn broadcasting with sound on (flv). Checking any of those enables ffmpeg required for encoding - this accounts for the additional load.
Thank you for the suggestion, we'll consider enabling ffmpeg only when requests are made via the web port.
Admin_P
 
Posts: 245
Joined: Wed Aug 24, 2016 1:49 pm

Re: ffmpeg taking CPU

Postby jaspersk » Fri Mar 02, 2018 6:16 pm

Thank you! That makes sense now since I did add sound after the original install

Overall I am very happy with Xeoma and it is working great on a remote VPS.
jaspersk
 
Posts: 4
Joined: Fri Dec 29, 2017 3:17 pm

Re: ffmpeg taking CPU

Postby Admin_P » Wed Mar 07, 2018 9:52 am

Good to hear! We hope that you'll continue to enjoy Xeoma.
Admin_P
 
Posts: 245
Joined: Wed Aug 24, 2016 1:49 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 8 guests

cron