java.lang.Runnable@Public
@Evolving
public class DefaultOOMHandler
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
DefaultOOMHandler(Context context,
boolean enforceVirtualMemory) |
Create an OOM handler.
|
| Modifier and Type | Method | 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 instead@VisibleForTesting protected CGroupsHandler getCGroupsHandler()
public void run()
run in interface java.lang.Runnableprotected boolean killContainer()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.