RE: Excessive RAM consumption - zeeeeeee - 2024-06-09
I don't have any extra plugins installed. What is listed in the plugins section were enabled by default when I installed Jellyfin:
AudioDB
MusicBrainz
OMDb
TMDb
Studio Images
RE: Excessive RAM consumption - VladtheImpaler - 2024-06-09
I use the TheTVDB plugin but already tested without it, it's not the problem. The rest are what ships by default.
RE: Excessive RAM consumption - thymon - 2025-01-20
Hello,
I am using Unraid OS, and I had to add an extra parameter "--memory=8G" to the Jellyfin Docker, because my server crashed twice within 24 hours due to Jellyfin consuming all the RAM.
I saw it go over 20GB of RAM.
Perhaps you need additional information that could assist you in your analysis?
Docker rebooted 6 hours ago and already almost 7Go
RE: Excessive RAM consumption - thymon - 2025-01-20
It reached 8GB and crashed...
So either it crashes the server, or it crashes itself when it hits the RAM limit I allocated to it.
Code: [2025-01-20 19:44:49.867 +01:00] [INF] [55] Jellyfin.Api.Auth.CustomAuthenticationHandler: "CustomAuthentication" was not authenticated. Failure message: "Invalid token."
[2025-01-20 19:44:49.867 +01:00] [ERR] [55] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Invalid token". URL "GET" "/socket".
[2025-01-20 19:45:36.130 +01:00] [INF] [70] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2025-01-20 19:45:48.674 +01:00] [INF] [19] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 2 inactive WebSockets.
[2025-01-20 19:46:01.730 +01:00] [INF] [79] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 10 inactive WebSockets.
[2025-01-20 19:46:01.730 +01:00] [INF] [79] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 2 WebSockets.
[2025-01-20 19:46:12.023 +01:00] [INF] [41] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 12 inactive WebSockets.
[2025-01-20 19:46:12.023 +01:00] [INF] [41] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 10 WebSockets.
[2025-01-20 19:46:24.088 +01:00] [INF] [97] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 12 WebSockets.
[2025-01-20 19:46:32.325 +01:00] [ERR] [119] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:32.354 +01:00] [ERR] [119] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:34.013 +01:00] [ERR] [119] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:34.925 +01:00] [ERR] [120] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:34.926 +01:00] [ERR] [120] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:34.927 +01:00] [ERR] [120] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:42.683 +01:00] [ERR] [124] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:42.938 +01:00] [ERR] [120] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:43.010 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:43.033 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:43.035 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:45.600 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.133 +01:00] [ERR] [26] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.137 +01:00] [ERR] [26] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.141 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.148 +01:00] [ERR] [26] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.154 +01:00] [ERR] [26] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:46:53.156 +01:00] [ERR] [98] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:01.746 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:01.747 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:01.979 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.322 +01:00] [ERR] [135] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.323 +01:00] [ERR] [135] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.877 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.878 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.879 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:02.880 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:03.790 +01:00] [ERR] [135] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.468 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.471 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.738 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.740 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.740 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.741 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:05.741 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.242 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.244 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.687 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.688 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.689 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.690 +01:00] [ERR] [137] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:06.695 +01:00] [ERR] [137] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:07.595 +01:00] [ERR] [139] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-01-20 19:47:07.596 +01:00] [ERR] [139] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
Code: docker exec Jellyfin env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=2fdb611f4efe
HOST_OS=Unraid
HOST_HOSTNAME=Unraid
NVIDIA_DRIVER_CAPABILITIES=all
PUID=99
PGID=100
UMASK=022
TZ=Europe/Paris
HOST_CONTAINERNAME=Jellyfin
JELLYFIN_PublishedServerUrl=192.168.10.100
NVIDIA_VISIBLE_DEVICES=all
HEALTHCHECK_URL=http://localhost:8096/health
DEBIAN_FRONTEND=noninteractive
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LANGUAGE=en_US:en
JELLYFIN_DATA_DIR=/config
JELLYFIN_CACHE_DIR=/cache
JELLYFIN_CONFIG_DIR=/config/config
JELLYFIN_LOG_DIR=/config/log
JELLYFIN_WEB_DIR=/jellyfin/jellyfin-web
JELLYFIN_FFMPEG=/usr/lib/jellyfin-ffmpeg/ffmpeg
XDG_CACHE_HOME=/cache
MALLOC_TRIM_THRESHOLD_=131072
HOME=/root
TOP inside docker
RE: Excessive RAM consumption - Efficient_Good_5784 - 2025-01-20
@thymon, where did you declare your transcode directory? Is it mounted on RAM?
Could you share the parameters you used to launch the Jellyfin container?
RE: Excessive RAM consumption - thymon - 2025-01-20
(2025-01-20, 08:40 PM)Efficient_Good_5784 Wrote: @thymon, where did you declare your transcode directory? Is it mounted on RAM?
Could you share the parameters you used to launch the Jellyfin container?
In Nvme
![[Image: image.png]](https://i.ibb.co/xqsc81d/image.png)
RE: Excessive RAM consumption - Efficient_Good_5784 - 2025-01-20
Do you have any plugins that you enabled? Can you list them out?
RE: Excessive RAM consumption - thymon - 2025-01-20
(2025-01-20, 08:55 PM)Efficient_Good_5784 Wrote: Do you have any plugins that you enabled? Can you list them out?
Yes of course
![[Image: image.png]](https://i.ibb.co/TtsTc3L/image.png)
RE: Excessive RAM consumption - Efficient_Good_5784 - 2025-01-20
I would try disabling the reports plugin first. See if that fixes the issue.
If not, try disabling all of them and turning them on one by one until you find the one that's giving you the issue.
I've heard of the reports plugin giving these types of issues before.
RE: Excessive RAM consumption - thymon - 2025-01-20
So I've disabled :
REPORTS
EDL CREATOR
Wait & see...
|