
public class OMemory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkByteBufferPoolConfiguration()
Checks the
OByteBufferPool configuration and emits a warning if configuration
is invalid. |
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 void |
fixCommonConfigurationProblems()
Tries to fix some common cache/memory configuration problems: Cache size is larger than direct memory size.
Memory chunk size is larger than cache size.
|
static long |
getCappedRuntimeMaxMemory(long unlimitedCap) |
static long |
getConfiguredMaxDirectMemory()
Obtains the configured value of the
-XX:MaxDirectMemorySize JVM option in bytes. |
public static long getCappedRuntimeMaxMemory(long unlimitedCap)
unlimitedCap - the upper limit on reported memory, if JVM reports unlimited memory.Runtime.maxMemory() except that unlimitedCap limit is applied if JVM reports unlimited memory.public static long getConfiguredMaxDirectMemory()
-XX:MaxDirectMemorySize JVM option in bytes.-1 if no configuration provided.public static void checkDirectMemoryConfiguration()
public static void checkCacheMemoryConfiguration()
public static void checkByteBufferPoolConfiguration()
OByteBufferPool configuration and emits a warning if configuration
is invalid.public static void fixCommonConfigurationProblems()
Copyright © 2009–2025 OrientDB. All rights reserved.