Jellyfin Forum
Troubleshooting high memory usage (>10Gb idle) - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Troubleshooting high memory usage (>10Gb idle) (/t-troubleshooting-high-memory-usage-10gb-idle)

Pages: 1 2


RE: Troubleshooting high memory usage (>10Gb idle) - volcs0 - 2024-07-26

(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.


RE: Troubleshooting high memory usage (>10Gb idle) - TheDreadPirate - 2024-07-26

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.


RE: Troubleshooting high memory usage (>10Gb idle) - volcs0 - 2024-07-26

(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.


RE: Troubleshooting high memory usage (>10Gb idle) - TheDreadPirate - 2024-07-26

If you've restarted the container, it may not be there anymore. How does your memory usage look after adding MALLOC variable?


RE: Troubleshooting high memory usage (>10Gb idle) - volcs0 - 2024-07-27

(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.


RE: Troubleshooting high memory usage (>10Gb idle) - Joutain - 2024-09-26

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