public class CGroupElasticMemoryController extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CGroupElasticMemoryController(org.apache.hadoop.conf.Configuration conf,
Context context,
CGroupsHandler cgroups,
boolean controlPhysicalMemory,
boolean controlVirtualMemory,
long limit)
Default constructor.
|
Modifier and Type | Method and 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, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public 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()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.