public class Containers extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Containers.Options |
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN
Sentinel used when the value is unknown.
|
| Constructor and Description |
|---|
Containers() |
| Modifier and Type | Method and Description |
|---|---|
static int |
activeProcessorCount()
Calculates an appropriate number of active processors for the VM to use.
|
static long |
memoryLimitInBytes()
Returns the limit of available memory for this process.
|
public static final int UNKNOWN
public static int activeProcessorCount()
public static long memoryLimitInBytes()
Containers.UNKNOWN