public final class JVMUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
REFERENCE_COST_IN_BYTES
Defines the costs for a reference in Bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
is32bitJVM() |
static long |
usedMemory(Runtime runtime)
Returns used memory as reported by the
Runtime and the function (totalMemory - freeMemory)
It attempts to correct atomicity issues (ie. |
public static final int REFERENCE_COST_IN_BYTES
public static boolean is32bitJVM()
public static long usedMemory(Runtime runtime)
Runtime and the function (totalMemory - freeMemory)
It attempts to correct atomicity issues (ie. when totalMemory expands) and reported usedMemory
results in negative valuesruntime - Copyright © 2019 Hazelcast, Inc.. All rights reserved.