Jellyfin Forum
100% CPU usage once I start playing - 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: 100% CPU usage once I start playing (/t-100-cpu-usage-once-i-start-playing)



100% CPU usage once I start playing - marmata75 - 2024-09-15

Hi all,

using Jellyfin since the very beginning 5y ago now, and it's the first time I've a problem like this. Using 10.9.11 in an lxc container on proxmox, working flawlessly since a couple of years with qsv hardware transcoding.
Watched a movie yesterday evening with no issues. Went watching a video this morning and I found it quite sluggish. I also begin gettings alerts from checkmk of high memory and high CPU usage.
By loggin in I see tens of jellyfin threads in htop. Also a bunch of "thread pool starvation".
The high CPU doesn't stop if I stop playing.
After restarting the container, same things happen, as soon as I play something everything crawls.
I enable debug logging and I copied the logs here from the start of the playback: https://pastebin.com/PqCDk4bJ
I don't see anything weird but I can't compare from the log of the 'normal' condition.
I avoided to copy the hundreds of "AuthenticationScheme: "CustomAuthentication" was successfully authenticated", the "<item name> has no parental rating set" and a couple of very long sql queries (long in terms of characters. Execution time was udner 50ms, getting worse as the CPU was getting pegged) that were polluting the logs.
Any hints on what might cause this?


RE: 100% CPU usage once I start playing - TheDreadPirate - 2024-09-15

Do you have the Trakt plugin installed?


RE: 100% CPU usage once I start playing - marmata75 - 2024-09-15

(2024-09-15, 04:25 PM)TheDreadPirate Wrote: Do you have the Trakt plugin installed?

Yes I do! Altough now that you tell me, there was no trace in the logs of any plugin activity! Do you think that might be the culprit?


RE: 100% CPU usage once I start playing - TheDreadPirate - 2024-09-15

Perhaps. This log line is from the Trakt plugin. I'm wondering if this is related to some of the authentication logs you are also seeing.

Code:
[2024-09-15 17:14:46.757 +02:00] [DBG] Syncing playback of "/mnt/matanas03media/Video/Youtube/channels/Franchino Er Criminale/Stagione 2024/Franchino Er Criminale - s2024e091399 - Buffet criminali TRIESTE.mp4" is forbidden for user "Marco".

https://github.com/jellyfin/jellyfin-plugin-trakt/blob/74b894c55f00d052bf89a25aee8744c8efc4a922/Trakt/ServerMediator.cs#L207