public class TaskExecutorProcessSpec extends CommonProcessMemorySpec<TaskExecutorFlinkMemory>
A TaskExecutor's memory consists of the following components.
The relationships of TaskExecutor memory components are shown below.
┌ ─ ─ Total Process Memory ─ ─ ┐ ┌ ─ ─ Total Flink Memory ─ ─ ┐ │ ┌───────────────────────────┐ │ ││ Framework Heap Memory ││ ─┐ │ └───────────────────────────┘ │ │ │ ┌───────────────────────────┐ │ │ ┌─ ││ Framework Off-Heap Memory ││ ├─ On-Heap │ │ └───────────────────────────┘ │ │ │ │┌───────────────────────────┐│ │ │ │ │ Task Heap Memory │ │ ─┘ │ │└───────────────────────────┘│ │ │ ┌───────────────────────────┐ │ ├─ ││ Task Off-Heap Memory ││ │ │ └───────────────────────────┘ │ │ │┌───────────────────────────┐│ ├─ │ │ Network Memory │ │ │ │└───────────────────────────┘│ │ │ ┌───────────────────────────┐ │ Off-Heap ─┼─ │ Managed Memory │ │ ││└───────────────────────────┘││ │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘ │ │┌─────────────────────────────┐│ ├─ │ JVM Metaspace │ │ │└─────────────────────────────┘│ │ ┌─────────────────────────────┐ └─ ││ JVM Overhead ││ └─────────────────────────────┘ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
Modifier | Constructor and Description |
---|---|
|
TaskExecutorProcessSpec(CPUResource cpuCores,
MemorySize frameworkHeapSize,
MemorySize frameworkOffHeapSize,
MemorySize taskHeapSize,
MemorySize taskOffHeapSize,
MemorySize networkMemSize,
MemorySize managedMemorySize,
MemorySize jvmMetaspaceSize,
MemorySize jvmOverheadSize,
Collection<ExternalResource> extendedResources) |
protected |
TaskExecutorProcessSpec(CPUResource cpuCores,
TaskExecutorFlinkMemory flinkMemory,
JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead,
int numSlots,
Collection<ExternalResource> extendedResources) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CPUResource |
getCpuCores() |
Map<String,ExternalResource> |
getExtendedResources() |
MemorySize |
getManagedMemorySize() |
MemorySize |
getNetworkMemSize() |
int |
getNumSlots() |
MemorySize |
getTaskHeapSize() |
MemorySize |
getTaskOffHeapSize() |
int |
hashCode() |
String |
toString() |
getFlinkMemory, getJvmDirectMemorySize, getJvmHeapMemorySize, getJvmMetaspaceAndOverhead, getJvmMetaspaceSize, getJvmOverheadSize, getTotalFlinkMemorySize, getTotalProcessMemorySize
@VisibleForTesting public TaskExecutorProcessSpec(CPUResource cpuCores, MemorySize frameworkHeapSize, MemorySize frameworkOffHeapSize, MemorySize taskHeapSize, MemorySize taskOffHeapSize, MemorySize networkMemSize, MemorySize managedMemorySize, MemorySize jvmMetaspaceSize, MemorySize jvmOverheadSize, Collection<ExternalResource> extendedResources)
protected TaskExecutorProcessSpec(CPUResource cpuCores, TaskExecutorFlinkMemory flinkMemory, JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead, int numSlots, Collection<ExternalResource> extendedResources)
public CPUResource getCpuCores()
public MemorySize getTaskHeapSize()
public MemorySize getTaskOffHeapSize()
public MemorySize getNetworkMemSize()
public MemorySize getManagedMemorySize()
public int getNumSlots()
public Map<String,ExternalResource> getExtendedResources()
public boolean equals(Object obj)
equals
in class CommonProcessMemorySpec<TaskExecutorFlinkMemory>
public int hashCode()
hashCode
in class CommonProcessMemorySpec<TaskExecutorFlinkMemory>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.