• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting CPU usage spikes every 5 minutes

     
    • 0 Vote(s) - 0 Average

    CPU usage spikes every 5 minutes

    ultrawaffle
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    Country:Germany
    #1
    2024-07-16, 10:43 AM
    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: 315)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-07-16, 04:08 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,055
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #3
    2024-07-17, 03:27 AM (This post was last modified: 2024-07-17, 03:42 AM by theguymadmax. Edited 5 times in total.)
    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.
    ultrawaffle
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    Country:Germany
    #4
    2024-07-17, 06:37 PM
    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: 272)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-07-17, 06:58 PM
    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?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode