From b0b1158a93ebabb4447628e9c9f769058b63abec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Szak=C3=A1cs?= Date: Wed, 4 Jan 2023 15:23:25 +0100 Subject: [PATCH] Update jemalloc package install instructions (#1061) as `libjemalloc1` is not available in recent distributions anymore, see: https://packages.debian.org/search?keywords=jemalloc --- docs/memory_usage_tweaks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/memory_usage_tweaks.md b/docs/memory_usage_tweaks.md index fa7bde3d..e21e4178 100644 --- a/docs/memory_usage_tweaks.md +++ b/docs/memory_usage_tweaks.md @@ -36,6 +36,6 @@ If setting `MALLOC_ARENA_MAX` doesn't show you satisfying results, it's time to Most Linux distributives provide their jemalloc packages. Using jemalloc doesn't require rebuilding imgproxy or it's dependencies and can be enabled by the `LD_PRELOAD` environment variable. See the example with Debian below. Note that jemalloc library path may vary on your system. ``` -sudo apt-get install libjemalloc1 -LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libjemalloc.so.1' imgproxy +sudo apt-get install libjemalloc2 +LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libjemalloc.so.2' imgproxy ```