public class CommonProcessMemorySpec<FM extends FlinkMemory> extends Object implements ProcessMemorySpec
The process memory consists of the following components.
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 ││ └─────────────────────────────┘ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
Modifier | Constructor and Description |
---|---|
protected |
CommonProcessMemorySpec(FM flinkMemory,
JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
FM |
getFlinkMemory() |
MemorySize |
getJvmDirectMemorySize() |
MemorySize |
getJvmHeapMemorySize() |
JvmMetaspaceAndOverhead |
getJvmMetaspaceAndOverhead() |
MemorySize |
getJvmMetaspaceSize() |
MemorySize |
getJvmOverheadSize() |
MemorySize |
getTotalFlinkMemorySize() |
MemorySize |
getTotalProcessMemorySize() |
int |
hashCode() |
protected CommonProcessMemorySpec(FM flinkMemory, JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead)
public FM getFlinkMemory()
public JvmMetaspaceAndOverhead getJvmMetaspaceAndOverhead()
public MemorySize getJvmHeapMemorySize()
getJvmHeapMemorySize
in interface ProcessMemorySpec
public MemorySize getJvmDirectMemorySize()
getJvmDirectMemorySize
in interface ProcessMemorySpec
public MemorySize getJvmMetaspaceSize()
getJvmMetaspaceSize
in interface ProcessMemorySpec
public MemorySize getJvmOverheadSize()
getJvmOverheadSize
in interface ProcessMemorySpec
public MemorySize getTotalFlinkMemorySize()
getTotalFlinkMemorySize
in interface ProcessMemorySpec
public MemorySize getTotalProcessMemorySize()
getTotalProcessMemorySize
in interface ProcessMemorySpec
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.