• 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 SOLVED: OOM Errors related to Jellyfin

     
    • 0 Vote(s) - 0 Average

    SOLVED: OOM Errors related to Jellyfin

    Getting OOM errors on UnRAID -- always mentioning Jellyfin
    RoyalFaceMelter
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #1
    2025-02-09, 03:23 PM
    I have posted about this here before and I THOUGHT the issue was resolved, but no appearantly not. I am not even sure if it's Jellyfin related, but the UnRAID system logs always mention Jellyfin so I wanted to create a new thread on it.

    So I put all of my logs from the 05:00 hour this morning on Pastebin:
    https://pastebin.com/bXNB8rZk
    -- I suggest cntrl+f Jellyfin, it's a ton of logs.


    Here's my Jellyfin docker run:
    https://pastebin.com/cEEjwXGB




    Please let me know anything else you might need to help.
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-02-10, 01:38 PM
    Can you check if this environment variable is set?

    Code:
    MALLOC_TRIM_THRESHOLD_=131072

    On the command line you'd use this command to see all of a container's environment variables.

    Code:
    docker exec -it jellyfin env
    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]
    RoyalFaceMelter
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #3
    2025-02-10, 01:45 PM (This post was last modified: 2025-02-10, 01:46 PM by RoyalFaceMelter. Edited 1 time in total.)
    (2025-02-10, 01:38 PM)TheDreadPirate Wrote: Can you check if this environment variable is set?

    Code:
    MALLOC_TRIM_THRESHOLD_=131072

    On the command line you'd use this command to see all of a container's environment variables.

    Code:
    docker exec -it jellyfin env

    I don't see the MALLOC_TRIM,

    Here is the output of the command you provided:


    docker exec -it jellyfin env 

    PATH=/1siopy/bin/usr/local/sbin/usr/local/bin/usr/sb
    HOSTNAME=7f7f8b3441ce
    TERM=xterm
    HOST_HOSTNAME=HomeServer HOST_CONTAINERNAME=jellyfin
    JELLYFIN_PublishedServerUrl=http://192.168.1.130:8096
    PUID=99
    PGID=100
    UMASK=022
    TZ=America/Chicago
    HOST_OS=Unraid
    HOME /root
    LANGUAGE=en_US.UTF-8
    LANG=en_US.UTF-8
    S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
    S6_VERBOSITY=1
    S6_STAGE2_HOOK=/docker-mods
    VIRTUAL_ENV=/lsiopy
    LSIO_FIRST_PARTY=true
    NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-02-11, 01:12 PM
    Set the environment variable "MALLOC_TRIM_THRESHOLD_" (including the underscore at the end) with a value of 131072.
    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]
    RoyalFaceMelter
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #5
    2025-02-13, 03:05 PM
    (2025-02-11, 01:12 PM)TheDreadPirate Wrote: Set the environment variable "MALLOC_TRIM_THRESHOLD_" (including the underscore at the end) with a value of 131072.


    Hey, one question:

    I haven't set the MALLOC_TRIM_THRESHOLD_ variable yet. This morning I did upgrade my RAM in my server to 64GB (rather than 16GB)...do you think/or recommend that the MALLOC_TRIM_THRESHOLD_ variable should still be necessary? I guess I am not sure what it does, that's why I am asking.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-02-13, 03:11 PM
    It should always be added. Jellyfin can still use a lot of memory with or without that env variable (usually from ffmpeg), but the env variable will help ensure it doesn't grow out of control unnecessarily. It's configures Jellyfin/DOTNET's memory management functions.
    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]
    RoyalFaceMelter
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #7
    2025-02-13, 03:21 PM
    (2025-02-13, 03:11 PM)TheDreadPirate Wrote: It should always be added.  Jellyfin can still use a lot of memory with or without that env variable (usually from ffmpeg), but the env variable will help ensure it doesn't grow out of control unnecessarily.  It's configures Jellyfin/DOTNET's memory management functions.


    Alright, I got that env. variable set. Hopefully with the RAM upgrade and that variable, I'll finally be in the clear. Thank you so much for your help on this, and thanks for taking the time to explain what the change did.
    « 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