From 8dd0d7f34cca01583da992c2d3fad7ff2e4ddb53 Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:21:52 -0400 Subject: [PATCH] fix(server): memory fragmentation (#27027) --- server/bin/start.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/server/bin/start.sh b/server/bin/start.sh index 0a26be8e0b..15f4411959 100755 --- a/server/bin/start.sh +++ b/server/bin/start.sh @@ -15,13 +15,12 @@ log_message() { log_message "Initializing Immich $IMMICH_SOURCE_REF" -# TODO: Update to mimalloc v3 when verified memory isn't released issue is fixed -# lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.3" -# if [ -f "$lib_path" ]; then -# export LD_PRELOAD="$lib_path" -# else -# echo "skipping libmimalloc - path not found $lib_path" -# fi +lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.3" +if [ -f "$lib_path" ]; then + export LD_PRELOAD="$lib_path" +else + echo "skipping libmimalloc - path not found $lib_path" +fi export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/jellyfin-ffmpeg/lib" SERVER_HOME="$(readlink -f "$(dirname "$0")/..")"