Hi, Flink uses a few libraries that allocate direct (off-heap) memory (Netty, RocksDB). Flink can also allocate direct memory by itself (only relevant for batch setups though). Therefore, Xmx controls only one part of Flink's memory footprint.
Best, Fabian 2018-06-04 16:48 GMT+02:00 aitozi <gjying1...@gmail.com>: > Hi, Szczypiński > > Do you have noticed the size of the maxDirectMemorySize in your taskamanger > jvm options, AFAIK the total memory one Taskmanager used is the (heap > memory > + directMemory) which may larger than the heap size specified by -Xmx? > > Best wishes > Aitozi > > > > -- > Sent from: http://apache-flink-user-mailing-list-archive.2336050. > n4.nabble.com/ >