Class CommonProcessMemorySpec<FM extends FlinkMemory>

java.lang.Object
org.apache.flink.runtime.util.config.memory.CommonProcessMemorySpec<FM>
All Implemented Interfaces:
Serializable, ProcessMemorySpec
Direct Known Subclasses:
JobManagerProcessSpec, TaskExecutorProcessSpec

public class CommonProcessMemorySpec<FM extends FlinkMemory> extends Object implements ProcessMemorySpec
Common memory components of Flink processes (e.g. JM or TM).

The process memory consists of the following components.

  • Total Flink Memory
  • JVM Metaspace
  • JVM Overhead
Among all the components, We use the Total Process Memory to refer to all the memory components, while the Total Flink Memory refers to all the internal components except JVM Metaspace and JVM Overhead. The internal components of Total Flink Memory, represented by FlinkMemory, are specific to concrete Flink process (e.g. JM or TM).

The relationships of process memory components are shown below.

               ┌ ─ ─ Total Process Memory  ─ ─ ┐
               │┌─────────────────────────────┐│
                │      Total Flink Memory     │
               │└─────────────────────────────┘│
               │┌─────────────────────────────┐│
                │        JVM Metaspace        │
               │└─────────────────────────────┘│
                ┌─────────────────────────────┐
               ││        JVM Overhead         ││
                └─────────────────────────────┘
               └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
 
See Also: