Re: Source code question - about the logic of calculating network buffer

2019-06-12 Thread 徐涛
Hi Yun, Thanks a lot for the detailed and clear explanation, that is very helpful. Best Henry > 在 2019年6月13日,上午10:32,Yun Gao 写道: > > Hi tao, > > As a whole, `networkBufBytes` is not part of the heap. In fact, it is > allocated from the direct memory. The rough relationship (ign

Re: Source code question - about the logic of calculating network buffer

2019-06-12 Thread Yun Gao
Hi tao, As a whole, `networkBufBytes` is not part of the heap. In fact, it is allocated from the direct memory. The rough relationship (ignores min/max and assumes managed memory is allocated on heap) between the variables are: Total memory of TM (configured by taskmanager.he

Source code question - about the logic of calculating network buffer

2019-06-12 Thread 徐涛
Hi Experts, I am debugging the WordCount Flink streaming program in local mode. Flink version is 1.7.2 I saw the following calculation logic about network buffer in class TaskManagerServices. jvmHeapNoNet is equal to -xmx amount in Java. why the networkBufB