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 |
fixCommonConfigurationProblems()
Tries to fix some common cache/memory configuration problems:
Cache size is larger than direct memory size.
|
static long |
getCappedRuntimeMaxMemory(long unlimitedCap) |
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 void checkCacheMemoryConfiguration()
public static void fixCommonConfigurationProblems()
Copyright © 2009–2020 OrientDB. All rights reserved.