Myasuka opened a new pull request #43: URL: https://github.com/apache/flink-docker/pull/43
This PR install `libjemalloc-dev` within docker image and offer option `disablejemalloc` to start daemon. By default, Flink image will adopt jemalloc as default memory allocator and will disable it if option `disablejemalloc` is given. With the default args to launch taskmanager pod, we can see the `libjemalloc` binary so is loaded in the memory process of task manager: <img width="695" alt="image" src="https://user-images.githubusercontent.com/1709104/98807549-c623ff00-2455-11eb-84a8-afc66e5290e1.png"> When we add `disablejemalloc` in the launch args , we can see the `libjemalloc` binary so is not loaded in the memory process of task manager: <img width="752" alt="image" src="https://user-images.githubusercontent.com/1709104/98807691-fec3d880-2455-11eb-8d79-0b3e69d52b1f.png"> BTW, to use `pmap` command in the pod to show whether `jemalloc` is enabled, I installed the `procps` in the docker image which is not added in current PR. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org