Skip to content

Commit 8fb1f26

Browse files
vaibsharmasuntong
authored andcommitted
memory leak issue fixed with jemalloc (h2non#381)
1 parent 94971fc commit 8fb1f26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ RUN DEBIAN_FRONTEND=noninteractive \
8989
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
9090
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
9191

92+
ADD https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 /tmp/jemalloc-5.2.1.tar.bz2
93+
RUN apt-get update && apt install -y bzip2 gcc make autoconf
94+
RUN cd /tmp \
95+
&& tar -jxvf jemalloc-5.2.1.tar.bz2 --no-same-owner \
96+
&& cd jemalloc-5.2.1 \
97+
&& ./configure --enable-prof && make && make install \
98+
&& rm -rf /tmp/*
99+
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
100+
92101
# Server port to listen
93102
ENV PORT 9000
94103

0 commit comments

Comments
 (0)