This is an automated email from the ASF dual-hosted git repository. snuyanzin pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-ci-docker.git
commit 55512cd3b3d34f68401db0a653470b0c85306320 Author: zhengyunhong.zyh <[email protected]> AuthorDate: Mon Sep 25 11:45:14 2023 +0800 [FLINK-18356][test-stability] Adopt Jemalloc as default memory allocator in CI docker to avoid memory leak --- base/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/Dockerfile b/base/Dockerfile index c2c21eb..553bea1 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:xenial # install packages RUN set -eux; \ apt-get update; apt-get upgrade -y ; \ - apt-get install -y gosu sudo locales make less build-essential openjdk-8-jdk curl libapr1 unzip uuid-runtime jq bsdmainutils wget python docker.io psmisc software-properties-common apt-transport-https; \ + apt-get install -y gosu sudo locales make less build-essential openjdk-8-jdk libjemalloc-dev curl libapr1 unzip uuid-runtime jq bsdmainutils wget python docker.io psmisc software-properties-common apt-transport-https; \ rm -rf /var/lib/apt/lists/*; # Install latest git @@ -37,6 +37,7 @@ ENV JAVA_HOME_8_X64 "/usr/lib/jvm/java-8-openjdk-amd64" ENV JAVA_HOME_11_X64 "/usr/lib/jvm/jdk-11.0.19+7" ENV JAVA_HOME_17_X64 "/usr/lib/jvm/jdk-17.0.7+7" ENV JAVA_HOME "/usr/lib/jvm/java-8-openjdk-amd64" +ENV LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so" # Install go RUN mkdir -p /usr/share/go \
