public class JVMSystemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_HEAP_MB
Zing will bump the heap up to 1 GB if -Xmx is smaller.
|
static boolean |
ZING_JVM |
| Constructor and Description |
|---|
JVMSystemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addZingJVMArgs(List<String> command)
Appends Zing-specific Java args, should be called before starting a
Java process.
|
static long |
getRuntimeMaxMemory()
Returns the max amount of memory in the heap available, using an
approach that depends on the JVM vendor, OS, etc.
|
static double |
getSystemLoad() |
static long |
getSystemZingMemorySize()
Returns the size of the System Zing Memory pool.
|
static void |
insertZingJVMArgs(List<String> command)
Insert Zing-specific Java args after the 'java' command, if 'java' is
the 0th element.
|
public static final boolean ZING_JVM
public static final int MIN_HEAP_MB
public static double getSystemLoad()
public static long getRuntimeMaxMemory()
public static long getSystemZingMemorySize()
public static void addZingJVMArgs(List<String> command)
Copyright © 2024. All rights reserved.