• 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 Massive cache usage

     
    • 0 Vote(s) - 0 Average

    Massive cache usage

    Cache usage on new install
    Boatman
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2026 Jul
    Reputation: 0
    Country:United Kingdom
    #1
    2026-07-08, 06:41 AM
    Having completely "Uninstalled" jellyfin from ubuntu 24.04 server as per "https://forum.jellyfin.org/t-completely-reinstalling-jellyfin" and reinstalled with official BASH script

    The reason for the uninstall was 138GB of cache usage Pouting-faceThis was entirely due to Multiple installs of differently configured Music Library on deletion of said Music library all the metadata files remained..... The DB had grown to 450Mb

    My Movie collection is approx 450 films (a few of which are probably heavy on transcoding) but not massive.

    Having deleted everything...... A new install with NO library setup being done I.E. Jellyfin should be empty!!!! My Cache usage is 108GB (BTW on the new install it stated that jellyfin had been installed and did i want to continue with the same server)

    I did a quick VM install and empty setup showed 23GB of cache.

    Does anyone have an idea where the files that are causing this issue are?
    34626
    Offline

    Member

    Posts: 266
    Threads: 43
    Joined: 2023 Jul
    Reputation: 0
    Country:Denmark
    #2
    2026-07-08, 09:02 AM
    I run Jellyfin in docker and at WebUI it says 12,2 GB used - but when i check the cache folder it says 4,3 MB - I think there is a bug in the webui controlpanel about that part?
    Jellyfin 10.11.11 docker Debian 13 on: SilverStone GD08, MSI Z790 Tomahawk, i5-14400, 16 GB DDR5 & 26 TB
    Raspberry pi 4 > Libreelec > Jellyfin addon (Play on & to)
    Boatman
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2026 Jul
    Reputation: 0
    Country:United Kingdom
    #3
    2026-07-08, 10:37 AM
    I am fairly sure it's more than a bug in the webui controlpanel. My movie playback is fine for awhile and then starts to stutter significantly even after file cleanup. Files are being stored somewhere.

    As stated a clean VM install didn't show 108Gb of cache usage.

    It is some problem with historic data being stored somewhere........ Even if installed in docker it's my understanding that the Db files are still on the OS...... so doesn't really help

    On a server with jellyfin deleted this is the result..........
    ps aux | grep jellyfin...... results in 99516 0.0 0.0 9292 2360 pts/1 S+ 11:33 0:00 grep --color=auto jellyfin

    so there is a process still running...... something is not right
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,678
    Threads: 11
    Joined: 2023 Jun
    Reputation: 473
    Country:United States
    #4
    2026-07-08, 01:25 PM (This post was last modified: 2026-07-08, 01:26 PM by TheDreadPirate. Edited 1 time in total.)
    If you ran "apt remove jellyfin", it would NOT delete any of the configuration or data files.

    To truly purge Jellyfin, you need to run the following.

    Code:
    sudo apt purge jellyfin*
    sudo rm -rf /var/lib/jellyfin /var/cache/jellyfin /etc/jellyfin
    sudo apt install jellyfin

    HOWEVER, is most of your disk usage from transcodes?  The transcode cleanup job only cleans files in the transcode directory that are older than 24 hours.  Normally, transcode files are cleaned up after playback finishes.  But if Jellyfin crashed while a transcode was happening it probably won't clean up the transcode files after it restarts.  But the clean up job would after 24 hours.

    If transcodes are the culprit for the high disk usage, in general, you can enable "transcode throttling" and "delete segments" in the transcode settings to reduce how much disk each session uses.

    [Image: attachment.php?aid=9860]


    Attached Files Thumbnail(s)
       
    Jellyfin 10.11.11 (Docker)
    Debian 13 w/Xanmod amd64v3 LTS kernel
    AMD Ryzen 5500 w/32GB DDR4
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    ZFS Storage pool
        vdev1 - 6x WD Red Pro 6TB CMR in RAIDZ1
        vdev2 - 3x WD Red Pro 18TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    34626
    Offline

    Member

    Posts: 266
    Threads: 43
    Joined: 2023 Jul
    Reputation: 0
    Country:Denmark
    #5
    2026-07-08, 04:37 PM
    (2026-07-08, 10:37 AM)Boatman Wrote: I am fairly sure it's more than a bug in the webui controlpanel. My movie playback is fine for awhile and then starts to stutter significantly even after file cleanup. Files are being stored somewhere.

    As stated a clean VM install didn't show 108Gb of cache usage.

    It is some problem with historic data being stored somewhere........ Even if installed in docker it's my understanding that the Db files are still on the OS...... so doesn't really help

    On a server with jellyfin deleted this is the result..........
    ps aux | grep jellyfin...... results in 99516  0.0  0.0  9292  2360 pts/1    S+  11:33  0:00 grep --color=auto jellyfin

    so there is a process still running...... something is not right

    As others mention, it sounds like you need to do a bit of cleanup - Have you run some of that cleanup tasks Jellyfin offers at dashboard > scheldued tasks?.

    Please make a new thread about the playback issue and provie logs, info about network and hardare - Then we stand a chance to help you :-)
    Jellyfin 10.11.11 docker Debian 13 on: SilverStone GD08, MSI Z790 Tomahawk, i5-14400, 16 GB DDR5 & 26 TB
    Raspberry pi 4 > Libreelec > Jellyfin addon (Play on & to)
    Boatman
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2026 Jul
    Reputation: 0
    Country:United Kingdom
    #6
    2026-07-08, 05:11 PM
    Thank you TheDreadPirate for your reply and i duly note your comments. (I will certainly set the transcoding limits after i get a clean install) I did a complete cleanup of all the remaining files after a Purge removal as stated in the opening message.... There were no jellyfin crashes.... and it is certainly not a problem that disappears after 24 hours.

    I will look at it further later and try and provide some more detailed information

    Many thanks
    Boatman
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2026 Jul
    Reputation: 0
    Country:United Kingdom
    #7
    2026-07-08, 08:09 PM
    SOLVED..... The dashboard reporting of cache usage is reporting total disk of entire OS install (my fault i didn't see it before)

    The stuttering i was suffering was completely solved after setting Throttle Transcodes and delete Segments with limits. My CPU is running at approx 40% while running heavy transcoding so all appears ok

    Many Thanks for the help, (I learnt a few things on the way which is always good)

    One bit of advice is don't create libraries and then delete them............. loads of "rubbish" is left behind
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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