Skip to content

Commit

Permalink
memory leak issue fixed with jemalloc (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibsharma authored Feb 9, 2022
1 parent c14db9e commit 73bdca8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 73bdca8

Please sign in to comment.