java.lang.Object
com.flexstor.common.util.RuntimeUtils
- public class RuntimeUtils
- extends java.lang.Object
|
Field Summary |
static long |
LOW_MEMORY_LIMIT
The smallest memory amount considered safe to keep FLEXSTOR.db running. |
|
Method Summary |
static void |
cleanUpMemory()
Invokes Garbage Collector. |
static boolean |
isMemoryLow()
Check if current available free memory is under the lower allowed limit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOW_MEMORY_LIMIT
public static final long LOW_MEMORY_LIMIT
- The smallest memory amount considered safe to keep FLEXSTOR.db running.
- See Also:
- Constant Field Values
RuntimeUtils
public RuntimeUtils()
isMemoryLow
public static boolean isMemoryLow()
- Check if current available free memory is under the lower allowed limit.
This method will try to invoque garbage collection as an attempt for increasing
the available free memory.
This method is intended to help prevent situations that could lead into an
OutOfMemoryError. It should be called before executing known memory
consuming operations.
cleanUpMemory
public static void cleanUpMemory()
- Invokes Garbage Collector.