Hello folks,
As established https://ci.apache.org/projects/flink/flink-docs-stable/ops/config.html#memory-configuration , I set the taskmanager.memory.process.size and taskmanager.memory.task.off-heap.size in my flink-conf.yaml and I see the 2 properties being pulled in. - Loading configuration property: taskmanager.memory.process.size, 8000m - Loading configuration property: taskmanager.memory.task.off-heap.size, 1024m I am not sure how the -Xmx and -Xms are calculated but I see Starting taskexecutor as a console application on host kafka-to-hdfs-taskmanager-dev-8597c78d9c-59dqw. VM settings: Min. Heap Size: 2.27G Max. Heap Size: 2.27G Using VM: OpenJDK 64-Bit Server VM
What gives ? I am looking through the scripts and am not sure I see any calculations based on taskmanager.memory.process.size |
The Total Flink Memory consists of off heap memory governed by fraction. In pure streaming case ( and non ROCKSDB state case )
Is not used AFAIK . May be reduce the fraction to 0 ? We do not use offline heap ( aka batch jobs ) on our cluster ? Any help will be appreciated. On Thu, Jul 9, 2020 at 9:25 AM Vishal Santoshi <[hidden email]> wrote:
|
Hi Vishal, If you have streaming jobs only and do not use RocksDB, you can tune the fraction (taskmanager.memory.managed.fraction) to 0. In this way, no more off-heap managed memory will be reserved for the user code execution. Please be aware that this does not mean the JVM heap will get all of the `process.size`. The Flink framework will still use some off-heap memory, for purposes like network buffering and JVM overhead. Thank you~ Xintong Song On Thu, Jul 9, 2020 at 10:57 PM Vishal Santoshi <[hidden email]> wrote:
|
Got it. That was what I always thought but needed to be sure. Thank you for confirming.... On Thu, Jul 9, 2020 at 9:39 PM Xintong Song <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |