Jellyfin Forum
CPU usage spikes every 5 minutes - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: CPU usage spikes every 5 minutes (/t-cpu-usage-spikes-every-5-minutes)



CPU usage spikes every 5 minutes - ultrawaffle - 2024-07-16

Hello everyone :)

I'm currently trying to optimize the power consumption of my server and while analyzing the data I've noticed an interesting pattern. About every 5 to 10 minutes the power consumption and CPU usage rises for a short period. I've narrowed the cause down with htop to be jellyfin.

   
   

I'm interested in what could be causing that. No scheduled tasks were executed during that time. I couldn't find anything in the normal jellyfin log. I've attached an excerpt from the debug log but I cannot really interpret that.

I'm running Jellyfin 10.9.7 in a docker containter on unraid 6.12.10.

Maybe someone has an idea?


.zip   log_20240715.log.zip (Size: 39.39 KB / Downloads: 150)


RE: CPU usage spikes every 5 minutes - TheDreadPirate - 2024-07-16

How did you enable debug logging? I'm assuming you followed out troubleshooting doc.

I've found that the method specified there doesn't work as expected in 10.9 and generates logs that aren't useful.

Delete the logging.json file you created and instead modify logging.default.json in that same folder. Set the three log levels at the top to "Debug" and restart jellyfin. Re-post with the new logs.


RE: CPU usage spikes every 5 minutes - theguymadmax - 2024-07-17

Those ffmpeg processes are most likely being triggered by trickplay. Trickplays are generated by ffmpeg. In dashboard -> scheduled task you'll find when the Generate Trickplay Images are scheduled to run. Other user had a similar issue, his recommendation was to set parallel library scan to 1 or 2, which can be done in Dashboard -> General.


RE: CPU usage spikes every 5 minutes - ultrawaffle - 2024-07-17

Thank you for your responses. Trickplay and chapter image extraction are disabled for every library so that should not be the cause of that.

I've changed the log settings to 'debug' in the logging file. Looking at the new log I'd say it's just connecting to the DB and trying to update some stuff every 5 minutes. Doesn't seem to be anything wrong with it. The server runs on an Intel N100 maybe it doesn't have enough juice :D Anyways it's not the end of the world maybe I'll set up a new container in the future.


.zip   log_20240717_001.log.zip (Size: 938.71 KB / Downloads: 169)


RE: CPU usage spikes every 5 minutes - TheDreadPirate - 2024-07-17

The N100 is plenty powerful. I used to run Jellyfin on the older, much less performant, Intel J4205 without issue.

Do you happen to have Android TV clients?