• 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 Excessive RAM consumption

    Pages (9): « Previous 1 2 3 4 5 … 9 Next »
     

     
    • 0 Vote(s) - 0 Average

    Excessive RAM consumption

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-04-16, 04:56 PM
    How much RAM is Jellyfin using? AFAIK, the malloc fix is in LSIO's image. For comparison, mine grows to ~2.5GB RAM and doesn't really grow beyond that.

    Excessive ffmpeg RAM usage is transient and only happens during initial library scans, which doesn't sound like that is happening here.
    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]
    Petitgnoll6
    Offline

    Junior Member

    Posts: 3
    Threads: 0
    Joined: 2024 Apr
    Reputation: 0
    #12
    2024-04-17, 07:29 AM
    It's around 4gb RAM. And when I restart the container, it goes back to 440mb

    And yes, I think I remember that the initial scan was really resource impactful in ram but it's not the issue here, it's the RAM being eat up slowly over time (but I don't see impact on the server' performance, so I guess it's ram caching ?).
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #13
    2024-04-17, 12:47 PM
    Jellyfin does aggressively cache.
    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]
    Breakintr
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #14
    2024-04-30, 08:57 AM (This post was last modified: 2024-04-30, 09:11 AM by Breakintr. Edited 2 times in total.)
    I might have the same or at least a similar issue. I have jellyfin running in proxmox/LXC, and looking at the system stats, since March the memory usage keeps increasing until it leaves the container unresponsive and I have to restart it.

       

       

    I'm trying to disable some tasks to see if it helps, but so far it keeps happening.

       

    Can't see anything on logs either, do you have any tip on how I can debug this further?

    Edit: Just found out this, I'm giving it a go and see if it fixes
    https://github.com/jellyfin/jellyfin/iss...1774082390
    https://github.com/dlemstra/Magick.NET/i...-785351620
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #15
    2024-04-30, 12:46 PM
    Within the LXC are you using any additional virtualization like docker? Or did you use the tteck scripts to install Jellyfin?

    Regardless, 2GB for the LXC is not enough. Our documented recommended minimum is 8GB of RAM, but you could probably get away with 4GB.

    https://jellyfin.org/docs/general/admini...memory-ram

    During media scanning when you add new media jellyfin spawns a bunch of ffmpeg and ffprobe processes that consume memory.
    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]
    Breakintr
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #16
    2024-04-30, 01:52 PM
    I used tteck scripts. I'll increase to 4Gb, I have enough to provision it. I just find odd that it was working fine with 2Gb since I've installed in August until March this year, looking at the releases, the only one that I saw that kinda matches it was jellyfin-ffmpeg v6.0.1-4.

    Anyway, I'll increase to 4Gb or even 8Gb and see if eventually memory consumption stops increases or if still creeps up until it gets out of memory. From what I could see, 2Gb would take around 1 week, so I'll get back in a few weeks.

    Thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #17
    2024-04-30, 02:05 PM
    My instance levels out at around 2.5GB and stays there. During big library scans where I add a bunch of new media it climbs to 4-6GB from the ffmpeg processes it spawns, but Jellyfin itself stays at 2.5GB.
    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]
    1
    34626
    Offline

    Member

    Posts: 173
    Threads: 36
    Joined: 2023 Jul
    Reputation: 0
    Country:Denmark
    #18
    2024-04-30, 07:37 PM
    My Jellyfin uses 9.5 GB of 32 GB
    Serv: N5105 - 32GB RAM, 1 WD Red SA500 2TB, 2 8TB, 2 4TB WD Red Plus, LC-35U3-C-HUB
    OS: Debian
    Clients: Pi4 with LibreELEC + JellyCon and Jellyfin Media Player
    Network: 2 TP-Link AX23, OpenWRT mesh 802.11s and 1 Gbit
    SyrupSplashin
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    #19
    2024-05-12, 06:13 AM
    (2024-02-28, 05:03 PM)TheDreadPirate Wrote: Most of the memory jellyfin uses is cache.  Memory used for caching and reserved memory for applications and application data behave significantly differently.  If another app needs more memory, the cached memory will be immediately released to the other application.  Most  dashboards, like the screenshot you provided, do not distinguish between reserved memory and cache.

    I'm running into this same situation where Jellyfin holds onto cache indefinitely; bare metal this is of little concern but I'm running it in proxmox and want that memory freed up for other VMs.

    Assuming it's expected for jellyfin to hold data in cache/buffer indefinitely, how can I change this behavior? If it's not expected, what could be the issue? I'm running Jellyfin v10.8.13.0 pulled from Ubuntu's repos (i.e. not a docker image). Github says the env variables to help with memory consumption should be within this version so I don't know what I can really do here.
    Breakintr
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #20
    2024-05-14, 09:15 AM
    It looks like whatever it was causing this, on my end it seem that was fixed on v10.9.0

       
    Pages (9): « Previous 1 2 3 4 5 … 9 Next »
     

    « 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