2023-09-05, 02:49 PM
(2023-09-05, 02:30 PM)nooobieee Wrote:(2023-09-05, 02:01 PM)skribe Wrote: Memory usage of several gigs is very normal, and Linux's memory management is very different than Windows' as well. In general, there is little to no need to monitor memory usage. Unused memory is wasted memory, and modern operating systems are highly efficient at memory management. If there is a practical need to reclaim memory, the OS will do so.
There is not, in any case, a known memory leak or similar bug in the jellyfin code, and there hasn't been a recent release to introduce one either. I'm sure you're fine.
The memory usage doesn't need to be a leak or bug to be excessive. Using several gigs of memory may be "normal" for Jellyfin, but it is not "normal".
"unused memory" is not wasted memory, it's memory the OS uses for file caching which is essential for applications like media software. A general rule of thumb is that applications (in total) shouldn't take more than 50% of available memory.
I think Jellyfin uses way more memory than it needs and can no doubt do better memory management.
Jellyfin is a .net application, and .net isn't particularly conservative with RAM, but it's not in any way a lack of optimization or a problem in need of solving. Jellyfin is not using anything remotely close to 50% of available memory on any system with a reasonable amount of memory to run jellyfin. 14% is well within the range of "normal" RAM usage for a database heavy application.
You do not need to monitor RAM usage on modern operating systems. There is no problem here.