memory leak issue fixed with jemalloc (#381)

This commit is contained in:
Vaibhav Sharma
2022-02-09 19:12:24 +05:30
committed by GitHub
parent c14db9e4bf
commit 73bdca8b2a
+9
View File
@@ -87,6 +87,15 @@ RUN DEBIAN_FRONTEND=noninteractive \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 /tmp/jemalloc-5.2.1.tar.bz2
RUN apt-get update && apt install -y bzip2 gcc make autoconf
RUN cd /tmp \
&& tar -jxvf jemalloc-5.2.1.tar.bz2 --no-same-owner \
&& cd jemalloc-5.2.1 \
&& ./configure --enable-prof && make && make install \
&& rm -rf /tmp/*
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
# Server port to listen
ENV PORT 9000