diff --git a/debian/conf/jellyfin b/debian/conf/jellyfin index a330a36..b8ade65 100644 --- a/debian/conf/jellyfin +++ b/debian/conf/jellyfin @@ -30,6 +30,9 @@ JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web" # ffmpeg binary paths, overriding the system values JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg" +# Use jemalloc2 for improved RAM usage (#11588) +LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 + # Disable glibc dynamic heap adjustment MALLOC_TRIM_THRESHOLD_=131072 diff --git a/debian/control b/debian/control index e0a9795..71497d3 100644 --- a/debian/control +++ b/debian/control @@ -16,7 +16,7 @@ Description: Jellyfin is the Free Software Media System. Package: jellyfin-server Architecture: any -Depends: libfontconfig1, adduser +Depends: libfontconfig1, libjemalloc2, adduser Recommends: jellyfin-web, sudo, jellyfin-ffmpeg7 | ffmpeg Description: Jellyfin is the Free Software Media System. This package provides the Jellyfin server backend and API.