This is an automated email from the ASF dual-hosted git repository.
liyu pushed a commit to branch release-1.12
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.12 by this push:
new e1c0220 [FLINK-20287][docs] Add documentation of how to switch memory
allocator in Flink docker image
e1c0220 is described below
commit e1c0220984a91091618ccb653cee7b007077a2eb
Author: Yun Tang <[email protected]>
AuthorDate: Fri Nov 27 18:16:32 2020 +0800
[FLINK-20287][docs] Add documentation of how to switch memory allocator in
Flink docker image
This closes #14248.
---
docs/deployment/resource-providers/standalone/docker.md | 11 +++++++++++
docs/deployment/resource-providers/standalone/docker.zh.md | 11 +++++++++++
2 files changed, 22 insertions(+)
diff --git a/docs/deployment/resource-providers/standalone/docker.md
b/docs/deployment/resource-providers/standalone/docker.md
index 8ee9d4d..30e9512 100644
--- a/docs/deployment/resource-providers/standalone/docker.md
+++ b/docs/deployment/resource-providers/standalone/docker.md
@@ -268,6 +268,17 @@ The `ENABLE_BUILT_IN_PLUGINS` should contain a list of
plugin jar file names sep
There are also more [advanced ways](#advanced-customization) for customizing
the Flink image.
+### Switch memory allocator
+
+Flink introduced `jemalloc` as default memory allocator to resolve memory
fragmentation problem (please refer to
[FLINK-19125](https://issues.apache.org/jira/browse/FLINK-19125)).
+
+You could switch back to use `glibc` as memory allocator to restore the old
behavior or if any unexpected memory consumption or problem observed
+(and please report the issue via JIRA or mailing list if you found any), by
passing `disable-jemalloc` parameter:
+
+```sh
+ docker run <jobmanager|standalone-job|taskmanager> disable-jemalloc
+```
+
### Advanced customization
There are several ways in which you can further customize the Flink image:
diff --git a/docs/deployment/resource-providers/standalone/docker.zh.md
b/docs/deployment/resource-providers/standalone/docker.zh.md
index 91eab55..c1e2b71 100644
--- a/docs/deployment/resource-providers/standalone/docker.zh.md
+++ b/docs/deployment/resource-providers/standalone/docker.zh.md
@@ -268,6 +268,17 @@ The `ENABLE_BUILT_IN_PLUGINS` should contain a list of
plugin jar file names sep
There are also more [advanced ways](#advanced-customization) for customizing
the Flink image.
+### Switch memory allocator
+
+Flink introduced `jemalloc` as default memory allocator to resolve memory
fragmentation problem (please refer to
[FLINK-19125](https://issues.apache.org/jira/browse/FLINK-19125)).
+
+You could switch back to use `glibc` as memory allocator to restore the old
behavior or if any unexpected memory consumption or problem observed
+(and please report the issue via JIRA or mailing list if you found any), by
passing `disable-jemalloc` parameter:
+
+```sh
+ docker run <jobmanager|standalone-job|taskmanager> disable-jemalloc
+```
+
### Advanced customization
There are several ways in which you can further customize the Flink image: