• 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 General Questions Can Someone Help Me Figure Out How to Reduce Jellyfin's Memory Usage to the Same Leve

    Pages (2): « Previous 1 2

     
    • 1 Vote(s) - 5 Average

    Can Someone Help Me Figure Out How to Reduce Jellyfin's Memory Usage to the Same Leve

    Can Someone Help Me Figure Out How to Reduce Jellyfin's Memory Usage to the Same Level as Emby?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,168
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #11
    2024-06-12, 03:11 PM (This post was last modified: 2024-06-12, 04:29 PM by Efficient_Good_5784. Edited 1 time in total.)
    I'll share what size it is on mine when I get access to it later today.

    Edit:

    I just checked the sizes of my DB files.
    They are as follows:
    • library.db = 56MB
    • library.db-wal = 106MB
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-06-12, 04:42 PM (This post was last modified: 2024-06-12, 04:44 PM by TheDreadPirate. Edited 1 time in total.)
    Docker stats for my test instances.

    Code:
    CONTAINER ID   NAME                      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O   BLOCK I/O         PIDS
    46849591f45b   jellyfin-stable-testing   0.01%     953.9MiB / 31.09GiB   3.00%     0B / 0B   1.63GB / 1.06GB   21
    e1db2e291ed3   jellyfin-unstable         0.01%     640.9MiB / 31.09GiB   2.01%     0B / 0B   3.59GB / 3.41GB   17

    My stable testing instance has the same library as my production instance, memory stats for my production instance below (package install in Ubuntu).

    Code:
    chris@rat-trap:~$ ps -p 3816 -o %cpu,%mem,cmd
    %CPU %MEM CMD
    0.4  2.5 /usr/bin/jellyfin

    2.5% of 32GB is ~820MB.

    My library.db size for 250 movies, 4400 episodes, 4200 songs, 64 audiobooks, and 500 music videos is 107MB.

    Code:
    chris@rat-trap:~$ ll -h /var/lib/jellyfin/data/library.db
    -rw-r--r-- 1 jellyfin jellyfin 107M Jun 12 10:12 /var/lib/jellyfin/data/library.db

    And the metadata directory is 14GB.

    Code:
    chris@rat-trap:~$ du -sh /var/lib/jellyfin/metadata/
    14G     /var/lib/jellyfin/metadata/
    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]
    21tc_sea
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:China
    #13
    2024-06-15, 09:50 AM (This post was last modified: 2024-06-15, 09:51 AM by 21tc_sea. Edited 1 time in total.)
    (2024-06-12, 04:42 PM)TheDreadPirate Wrote: Docker stats for my test instances.

    Code:
    CONTAINER ID  NAME                      CPU %    MEM USAGE / LIMIT    MEM %    NET I/O  BLOCK I/O        PIDS
    46849591f45b  jellyfin-stable-testing  0.01%    953.9MiB / 31.09GiB  3.00%    0B / 0B  1.63GB / 1.06GB  21
    e1db2e291ed3  jellyfin-unstable        0.01%    640.9MiB / 31.09GiB  2.01%    0B / 0B  3.59GB / 3.41GB  17

    My stable testing instance has the same library as my production instance, memory stats for my production instance below (package install in Ubuntu).

    Code:
    chris@rat-trap:~$ ps -p 3816 -o %cpu,%mem,cmd
    %CPU %MEM CMD
    0.4  2.5 /usr/bin/jellyfin

    2.5% of 32GB is ~820MB.

    My library.db size for 250 movies, 4400 episodes, 4200 songs, 64 audiobooks, and 500 music videos is 107MB.

    Code:
    chris@rat-trap:~$ ll -h /var/lib/jellyfin/data/library.db
    -rw-r--r-- 1 jellyfin jellyfin 107M Jun 12 10:12 /var/lib/jellyfin/data/library.db

    And the metadata directory is 14GB.

    Code:
    chris@rat-trap:~$ du -sh /var/lib/jellyfin/metadata/
    14G    /var/lib/jellyfin/metadata/
    So this is where the problem lies! My library.db is 3.5GB, and my Jellyfin container, without any memory limit, is now occupying 15GB. If your library.db is as large as mine, I guess you would also encounter the same awkward situation as me, having to wait a long time for it to finish starting up!


    Attached Files Thumbnail(s)
       
    ThomasPGH
    Offline

    Member

    Posts: 85
    Threads: 5
    Joined: 2023 Nov
    Reputation: 0
    Country:United Kingdom
    #14
    2024-06-15, 11:04 AM
    (2024-06-12, 02:17 PM)21tc_sea Wrote: Could you please check the size of the library.db file in your config/data directory? If you mentioned that your Jellyfin memory usage is only around 900MB, I guess your library.db is probably only a few hundred MBs.

    Under Scheduled Tasks there's a task called Optimise database. When has this run last time?
    21tc_sea
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:China
    #15
    2024-06-17, 01:47 AM
    (2024-06-15, 11:04 AM)ThomasPGH Wrote:
    (2024-06-12, 02:17 PM)21tc_sea Wrote: Could you please check the size of the library.db file in your config/data directory? If you mentioned that your Jellyfin memory usage is only around 900MB, I guess your library.db is probably only a few hundred MBs.

    Under Scheduled Tasks there's a task called Optimise database. When has this run last time?

    13 hours ago, in fact, the database optimization feature you mentioned runs once a day on my device. However, it doesn’t seem to help much. The database is indeed that large, I estimate it contains no less than 40,000 movies…
    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