Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DefaultOOMHandler(Context context,
boolean enforceVirtualMemory)
Create an OOM handler.
|
Modifier and Type | Method and Description |
---|---|
protected CGroupsHandler |
getCGroupsHandler() |
protected boolean |
killContainer()
Choose and kill a container in case of OOM.
|
void |
run()
It is called when the node is under an OOM condition.
|
public DefaultOOMHandler(Context context, boolean enforceVirtualMemory)
context
- node manager context to work withenforceVirtualMemory
- true if virtual memory needs to be checked,
false if physical memory needs to be checked insteadprotected CGroupsHandler getCGroupsHandler()
public void run()
protected boolean killContainer()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.