• 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

     
    • 0 Vote(s) - 0 Average

    Excessive RAM consumption

    blubkatze
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2025 May
    Reputation: 0
    Country:Germany
    #82
    2025-05-09, 12:03 PM
    I do have the same problem that it increases until OOM.
    For the time being I added a systemd timer to restart the docker container every 30minutes, so it doesn't hog all the memory and hangs the server (since the server also hosts DNS and other services inside the network).

    On investigation it seems like it starts a jellyfin thread every other second[1]

    inside the docker logs there is nothing from the time it says it started until the OOM[2]

    No trickplay enable on any library and the following plugins enabled[3]

    With enabled debug logs it looks like it does try to check the Scheduled Tasks all the time it increases the PID count[4]. Maybe the threads aren't closed after the check which contributed to the memory leak.

    Happy to give you need more information if needed.



    [1]
    # while true; do docker stats --no-stream jellyfin; sleep 5; done
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.00% 304.1MiB / 3.501GiB 8.48% 0B / 0B 201kB / 213MB 832
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 2.68% 304.5MiB / 3.501GiB 8.49% 0B / 0B 201kB / 213MB 839
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.79% 304.8MiB / 3.501GiB 8.50% 0B / 0B 201kB / 213MB 844
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.65% 305.1MiB / 3.501GiB 8.51% 0B / 0B 201kB / 213MB 850
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.82% 305.7MiB / 3.501GiB 8.53% 0B / 0B 201kB / 213MB 859
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.81% 306MiB / 3.501GiB 8.54% 0B / 0B 201kB / 213MB 864
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.98% 306.4MiB / 3.501GiB 8.55% 0B / 0B 201kB / 213MB 870
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.80% 306.6MiB / 3.501GiB 8.55% 0B / 0B 201kB / 213MB 875
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.78% 306.9MiB / 3.501GiB 8.56% 0B / 0B 201kB / 213MB 880
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.89% 307.3MiB / 3.501GiB 8.57% 0B / 0B 201kB / 213MB 887
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.60% 307.2MiB / 3.501GiB 8.57% 0B / 0B 201kB / 213MB 892
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.87% 307.5MiB / 3.501GiB 8.58% 0B / 0B 201kB / 213MB 898
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 1.17% 307.7MiB / 3.501GiB 8.58% 0B / 0B 201kB / 213MB 901
    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
    744ff4e4d855 jellyfin 0.89% 307.9MiB / 3.501GiB 8.59% 0B / 0B 201kB / 213MB 905


    [2]
    [..]
    Emby.Server.Implementations.ApplicationHost: Core startup complete
    Main: Startup complete 0:00:36.9432776

    [3]
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AniDB 10.0.0.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AniList 11.0.0.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.10.6.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.10.6.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.10.6.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.10.6.0
    Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.10.6.0

    [4]
    [11:58:26] [INF] [64] Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor: Executing ObjectResult, writing value of type 'Jellyfin.Api.Controllers.ScheduledTasksController+<GetTasks>d__2'.
    [11:58:26] [INF] [64] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Executed action Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api) in 3.0568ms
    [11:58:26] [INF] [64] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executed endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:26] [INF] [64] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - 200 null application/json; charset=utf-8 5.6719ms
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Hosting.Diagnostics: Request starting HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - null null
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executing endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Route matched with {action = "GetTasks", controller = "ScheduledTasks"}. Executing controller action with signature System.Collections.Generic.IEnumerable1[MediaBrowser.Model.Tasks.TaskInfo] GetTasks(System.Nullable1[System.Boolean], System.Nullable1[System.Boolean]) on controller Jellyfin.Api.Controllers.ScheduledTasksController (Jellyfin.Api).
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor: Executing ObjectResult, writing value of type 'Jellyfin.Api.Controllers.ScheduledTasksController+<GetTasks>d__2'.
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Executed action Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api) in 4.9223ms
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executed endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:30] [INF] [68] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - 200 null application/json; charset=utf-8 10.4557ms
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Hosting.Diagnostics: Request starting HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - null null
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executing endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Route matched with {action = "GetTasks", controller = "ScheduledTasks"}. Executing controller action with signature System.Collections.Generic.IEnumerable
    1[MediaBrowser.Model.Tasks.TaskInfo] GetTasks(System.Nullable1[System.Boolean], System.Nullable1[System.Boolean]) on controller Jellyfin.Api.Controllers.ScheduledTasksController (Jellyfin.Api).
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor: Executing ObjectResult, writing value of type 'Jellyfin.Api.Controllers.ScheduledTasksController+<GetTasks>d__2'.
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Executed action Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api) in 11.8148ms
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executed endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:32] [INF] [69] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - 200 null application/json; charset=utf-8 14.4339ms
    [11:58:36] [INF] [73] Microsoft.AspNetCore.Hosting.Diagnostics: Request starting HTTP/1.1 GET http://192.168.1.31:8096/ScheduledTasks?IsEnabled=true - null null
    [11:58:36] [INF] [73] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executing endpoint 'Jellyfin.Api.Controllers.ScheduledTasksController.GetTasks (Jellyfin.Api)'
    [11:58:36] [INF] [73] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Route matched with {action = "GetTasks", controller = "ScheduledTasks"}. Executing controller action with signature System.Collections.Generic.IEnumerable1[MediaBrowser.Model.Tasks.TaskInfo] GetTasks(System.Nullable1[System.Boolean], System.Nullable`1[System.Boolean]) on controller Jellyfin.Api.Controllers.ScheduledTasksController (Jellyfin.Api).
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Excessive RAM consumption - by duplikk - 2024-02-27, 07:58 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-02-27, 09:45 PM
    RE: Excessive RAM consumption - by duplikk - 2024-02-28, 01:22 PM
    RE: Excessive RAM consumption - by Efficient_Good_5784 - 2024-02-28, 05:52 PM
    RE: Excessive RAM consumption - by evrial - 2025-04-09, 12:51 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-04-09, 02:57 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-02-28, 05:03 PM
    RE: Excessive RAM consumption - by SyrupSplashin - 2024-05-12, 06:13 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-05-14, 01:30 PM
    RE: Excessive RAM consumption - by 34626 - 2024-02-28, 05:23 PM
    RE: Excessive RAM consumption - by WiseWeasel - 2024-02-29, 12:31 AM
    RE: Excessive RAM consumption - by Petitgnoll6 - 2024-04-14, 10:41 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-04-14, 03:26 PM
    RE: Excessive RAM consumption - by Petitgnoll6 - 2024-04-16, 10:43 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-04-16, 04:56 PM
    RE: Excessive RAM consumption - by Petitgnoll6 - 2024-04-17, 07:29 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-04-17, 12:47 PM
    RE: Excessive RAM consumption - by Breakintr - 2024-04-30, 08:57 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-04-30, 12:46 PM
    RE: Excessive RAM consumption - by Breakintr - 2024-04-30, 01:52 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2024-04-30, 02:05 PM
    RE: Excessive RAM consumption - by 34626 - 2024-04-30, 07:37 PM
    RE: Excessive RAM consumption - by Breakintr - 2024-05-14, 09:15 AM
    RE: Excessive RAM consumption - by VladtheImpaler - 2024-05-23, 12:22 PM
    RE: Excessive RAM consumption - by EVOTk - 2024-05-23, 03:46 PM
    RE: Excessive RAM consumption - by Fate - 2024-05-23, 04:15 PM
    RE: Excessive RAM consumption - by EVOTk - 2024-05-23, 07:01 PM
    RE: Excessive RAM consumption - by VladtheImpaler - 2024-05-26, 11:43 AM
    RE: Excessive RAM consumption - by VladtheImpaler - 2024-06-06, 01:44 PM
    RE: Excessive RAM consumption - by VladtheImpaler - 2024-06-08, 11:39 AM
    RE: Excessive RAM consumption - by zeeeeeee - 2024-06-09, 12:58 PM
    RE: Excessive RAM consumption - by Mel_Gibson_Real - 2024-06-09, 01:45 PM
    RE: Excessive RAM consumption - by zeeeeeee - 2024-06-09, 02:02 PM
    RE: Excessive RAM consumption - by VladtheImpaler - 2024-06-09, 05:17 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-20, 02:19 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-20, 07:17 PM
    RE: Excessive RAM consumption - by Efficient_Good_5784 - 2025-01-20, 08:40 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-20, 08:45 PM
    RE: Excessive RAM consumption - by Efficient_Good_5784 - 2025-01-20, 08:55 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-20, 09:05 PM
    RE: Excessive RAM consumption - by Efficient_Good_5784 - 2025-01-20, 09:14 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-21, 01:24 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-20, 09:15 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-21, 01:37 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-01-21, 02:58 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-21, 03:20 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-21, 05:12 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-26, 05:19 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-01-26, 07:54 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-27, 03:22 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-27, 03:50 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-01-27, 06:41 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-27, 07:24 PM
    RE: Excessive RAM consumption - by gnattu - 2025-01-27, 07:49 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-27, 10:24 PM
    RE: Excessive RAM consumption - by gnattu - 2025-01-28, 02:22 AM
    RE: Excessive RAM consumption - by thymon - 2025-01-28, 07:47 AM
    RE: Excessive RAM consumption - by thymon - 2025-01-28, 09:03 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-30, 07:51 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-01-30, 02:33 PM
    RE: Excessive RAM consumption - by thymon - 2025-01-30, 08:05 PM
    RE: Excessive RAM consumption - by thymon - 2025-03-16, 10:26 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-17, 02:29 AM
    RE: Excessive RAM consumption - by gizmomelb - 2025-03-17, 07:35 AM
    RE: Excessive RAM consumption - by thymon - 2025-03-17, 09:19 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-17, 03:31 PM
    RE: Excessive RAM consumption - by thymon - 2025-03-17, 05:05 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-18, 04:25 PM
    RE: Excessive RAM consumption - by gizmomelb - 2025-03-18, 01:36 AM
    RE: Excessive RAM consumption - by Efficient_Good_5784 - 2025-03-18, 07:10 AM
    RE: Excessive RAM consumption - by thymon - 2025-03-18, 08:27 AM
    RE: Excessive RAM consumption - by thymon - 2025-03-18, 08:48 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-25, 02:01 PM
    RE: Excessive RAM consumption - by thymon - 2025-03-27, 11:26 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-27, 02:05 PM
    RE: Excessive RAM consumption - by thymon - 2025-03-28, 12:52 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-28, 01:26 PM
    RE: Excessive RAM consumption - by thymon - 2025-03-30, 08:51 PM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-31, 01:01 AM
    RE: Excessive RAM consumption - by thymon - 2025-03-31, 07:53 AM
    RE: Excessive RAM consumption - by TheDreadPirate - 2025-03-31, 01:02 PM
    RE: Excessive RAM consumption - by blubkatze - 2025-05-09, 12:03 PM
    RE: Excessive RAM consumption - by Larsenv - 2025-05-13, 05:48 PM
    RE: Excessive RAM consumption - by blubkatze - 2025-05-13, 06:07 PM
    RE: Excessive RAM consumption - by theguymadmax - 2025-05-13, 06:06 PM
    RE: Excessive RAM consumption - by gnattu - 2025-05-13, 09:00 PM

    • 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