From e127e67e6bc493d6da408dc0e0c8ede6a256c4f0 Mon Sep 17 00:00:00 2001 From: Liupengcheng Date: Mon, 21 Oct 2019 14:10:33 +0800 Subject: [PATCH] [FLINK-14123]Update help docs for OutOfMemoryError --- gettinghelp.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gettinghelp.md b/gettinghelp.md index c763b940fc..b20454e68f 100644 --- a/gettinghelp.md +++ b/gettinghelp.md @@ -131,3 +131,12 @@ Hadoop version of the cluster you want to connect to (HDFS / YARN). The easiest way to fix that is to pick a Hadoop-free Flink version and simply export the Hadoop path and classpath from the cluster. + +### I have an OutOfMemoryError + +In Fink 1.9.0 and prior version, the managed memory fraction of taskmanager is controlled by `taskmanager.memory.fraction`, +and with 0.7 as the default value. This sometimes will cause OOMs due to the fact that the default value of +JVM parameter `NewRatio` is 2, which means the old generation occupied only 2/3 (0.66) of the heap memory. + +If you run into this case, please try to manually change this value to a lower value. +