• 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 Troubleshooting high memory usage (>10Gb idle)

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Troubleshooting high memory usage (>10Gb idle)

    volcs0
    Offline

    Junior Member

    Posts: 31
    Threads: 8
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #11
    2024-07-26, 05:29 PM
    (2024-07-26, 05:22 PM)TheDreadPirate Wrote: First, add this to your environment variables in the docker config.  It should trigger jellyfin/docker to more aggressively conserve memory.

    MALLOC_TRIM_THRESHOLD_=131072

    Does the terminal not word wrap?  The rest of the command is cut off.

    Code:
    ps -aux | grep ffmpeg > ffmpeg.txt
    cat ffmpeg.txt

    Code:
    abc        221  5.1 16.7 282620192 5357040 ?  Ssl  08:12  12:55 /usr/bin/jellyfin --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
    root      2417  0.0  0.0  6480  2476 pts/2    S+  12:25  0:00 grep --color=auto ffmpeg

    Will add that ENV variable.

    Thanks again.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-07-26, 05:42 PM
    Out of curiosity, are you running the ps command in the container or on the host? Just realized that its only showing the actual jellyfin process and not whatever ffmpeg command was consuming 9.8GB of 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]
    volcs0
    Offline

    Junior Member

    Posts: 31
    Threads: 8
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #13
    2024-07-26, 07:35 PM
    (2024-07-26, 05:42 PM)TheDreadPirate Wrote: Out of curiosity, are you running the ps command in the container or on the host?  Just realized that its only showing the actual jellyfin process and not whatever ffmpeg command was consuming 9.8GB of memory.

    Running it from within the container.
    I don't see any FFMPEG processes when I run it from the host.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2024-07-26, 08:23 PM
    If you've restarted the container, it may not be there anymore. How does your memory usage look after adding MALLOC variable?
    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]
    volcs0
    Offline

    Junior Member

    Posts: 31
    Threads: 8
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #15
    2024-07-27, 02:28 AM
    (2024-07-26, 08:23 PM)TheDreadPirate Wrote: If you've restarted the container, it may not be there anymore.  How does your memory usage look after adding MALLOC variable?

    See attached. Looks better.


    Attached Files Thumbnail(s)
       
    Joutain
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:Canada
    #16
    2024-09-26, 08:22 AM
    i have the 10.9.11 new install on my synology NAS 16GB of RAM being consumed by jellyfin totally. all the env has been set and my observation is that when i adding new video to library, the memory just spikes very quickly maybe 1GB per min. issue looks very like below one. but the env was the solution for the case. so i would assume the issue i am observing is different from the previous one.

    would you be able to help with the case? Thanks!


    https://github.com/jellyfin/jellyfin/issues/6306
    Pages (2): « Previous 1 2

    « 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