Skip to content

Commit 6021e90

Browse files
authored
feature(dockerfiles): set MALLOC_CONF environment variable in TiFlash image (#642)
Enable profiling capability but incative default. Ref pingcap/tiflash#9320
1 parent 98436eb commit 6021e90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockerfiles/products/tiflash/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ ARG BASE_IMG=ghcr.io/pingcap-qe/bases/tiflash-base:v1.9.2
22
FROM $BASE_IMG
33
ENV LD_LIBRARY_PATH /tiflash
44
COPY tiflash /tiflash
5+
# Enable jemalloc profiling, inactive by default.
6+
# See https://jemalloc.net/jemalloc.3.html for details.
7+
ENV MALLOC_CONF="prof:true,prof_active:false"
58
ENTRYPOINT ["/tiflash/tiflash", "server"]

0 commit comments

Comments
 (0)