
public class OMemory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCacheMemoryConfiguration()
Checks the OrientDB cache memory configuration and emits a warning if configuration is invalid.
|
static void |
checkDirectMemoryConfiguration()
Checks the direct memory configuration and emits a warning if configuration is invalid.
|
static long |
getConfiguredMaxDirectMemory()
Obtains the configured value of the
-XX:MaxDirectMemorySize JVM option in bytes. |
static long |
getMaxCacheMemorySize()
Calculates the total configured maximum size of all OrientDB caches.
|
static long |
getPhysicalMemorySize()
Obtains the total size in bytes of the installed physical memory on this machine.
|
static long |
parseVmArgsSize(String text)
Parses the size specifier formatted in the JVM style, like 1024k or 4g.
|
public static long getPhysicalMemorySize()
-1.-1 if the size can't be obtained.public static long getConfiguredMaxDirectMemory()
-XX:MaxDirectMemorySize JVM option in bytes.-1 if no configuration provided.public static long getMaxCacheMemorySize()
public static void checkDirectMemoryConfiguration()
throws OConfigurationException
OConfigurationExceptionpublic static void checkCacheMemoryConfiguration()
public static long parseVmArgsSize(String text) throws IllegalArgumentException
text - the text to parse.IllegalArgumentException - if size specifier is not recognized as valid.Copyright © 2009–2016 Orient Technologies. All rights reserved.