Skip to content

Commit

Permalink
[FLINK-21048][docs] Refactor documentation related to switch memory a…
Browse files Browse the repository at this point in the history
…llocator
  • Loading branch information
Myasuka committed Jan 29, 2021
1 parent 4104608 commit 4f5747f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/deployment/resource-providers/standalone/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,12 @@ $ docker build --tag pyflink:latest .
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:
(and please report the issue via JIRA or mailing list if you found any), by setting environment variable `DISABLE_JEMALLOC` as true:
```sh
$ docker run <jobmanager|standalone-job|taskmanager> disable-jemalloc
$ docker run \
--env DISABLE_JEMALLOC=true \
flink:{% if site.is_stable %}{{site.version}}-scala{{site.scala_version_suffix}}{% else %}latest{% endif %} <jobmanager|standalone-job|taskmanager>
```
### Advanced customization
Expand Down
6 changes: 4 additions & 2 deletions docs/deployment/resource-providers/standalone/docker.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,12 @@ $ docker build --tag pyflink:latest .
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:
(and please report the issue via JIRA or mailing list if you found any), by setting environment variable `DISABLE_JEMALLOC` as true:
```sh
$ docker run <jobmanager|standalone-job|taskmanager> disable-jemalloc
$ docker run \
--env DISABLE_JEMALLOC=true \
flink:{% if site.is_stable %}{{site.version}}-scala{{site.scala_version_suffix}}{% else %}latest{% endif %} <jobmanager|standalone-job|taskmanager>
```
### Advanced customization
Expand Down

0 comments on commit 4f5747f

Please sign in to comment.