java.lang.Runnablepublic class CGroupElasticMemoryController
extends java.lang.Thread
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
CGroupElasticMemoryController(org.apache.hadoop.conf.Configuration conf,
Context context,
CGroupsHandler cgroups,
boolean controlPhysicalMemory,
boolean controlVirtualMemory,
long limit) |
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isAvailable() |
Checks if the CGroupElasticMemoryController is available on this system.
|
void |
run() |
Main OOM listening thread.
|
void |
stopListening() |
Stop listening to the cgroup.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yieldpublic CGroupElasticMemoryController(org.apache.hadoop.conf.Configuration conf,
Context context,
CGroupsHandler cgroups,
boolean controlPhysicalMemory,
boolean controlVirtualMemory,
long limit)
throws org.apache.hadoop.yarn.exceptions.YarnException
conf - Yarn configuration to usecontext - Node manager context to out of memory handlercgroups - Cgroups handler configuredcontrolPhysicalMemory - Whether to listen to physical memory OOMcontrolVirtualMemory - Whether to listen to virtual memory OOMlimit - memory limit in bytesorg.apache.hadoop.yarn.exceptions.YarnException - Could not instantiate classpublic void stopListening()
public static boolean isAvailable()
public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadCopyright © 2008–2025 Apache Software Foundation. All rights reserved.