Skip to content

Commit a5f98a4

Browse files
authored
Lets actually use jemalloc (set needed env variables) (#1)
Set environment variables for memory allocation tuning.
1 parent a2765e4 commit a5f98a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ RUN apt-get update && \
4848
rm -rf /tmp/build && \
4949
apt-get clean
5050

51+
ENV LD_PRELOAD="libjemalloc.so.2"
52+
ENV MALLOC_CONF="dirty_decay_ms:0,muzzy_decay_ms:0,narenas:2,background_thread:true,thp:never"
53+
5154
WORKDIR /

0 commit comments

Comments
 (0)