From 545de52a12df65c5cbfd7cfb281efc13fadb87c8 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 19 Jul 2021 11:05:57 +0100 Subject: [PATCH] Load Debian's version of jemalloc --- services/git-bridge/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/git-bridge/Dockerfile b/services/git-bridge/Dockerfile index 5367380bde..cf96b5ddf8 100644 --- a/services/git-bridge/Dockerfile +++ b/services/git-bridge/Dockerfile @@ -25,9 +25,11 @@ RUN make package \ FROM openjdk:11-jre -RUN apt-get update && apt-get install -y git sqlite3 procps htop net-tools sockstat \ +RUN apt-get update && apt-get install -y git sqlite3 procps htop net-tools sockstat libjemalloc2 \ && rm -rf /var/lib/apt/lists +ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 + # Install Google Cloud Profiler agent RUN mkdir -p /opt/cprof && \ wget -q -O- https://storage.googleapis.com/cloud-profiler/java/latest/profiler_java_agent.tar.gz \