/** * Verify if the java virtual machine is in a very low memory condition. The memory is considered very low if less than half a * specified value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code> * .The threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in very low memory condition. */ public static boolean veryLowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold() / 2; }
/** * Verify if the java virtual machine is in a low memory condition. The memory is considered low if less than a specified * value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code>.The * threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in low memory condition. */ public static boolean lowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold(); }
/** * Verify if the java virtual machine is in a low memory condition. The memory is considered low if less than a specified * value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code>.The * threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in low memory condition. */ public static boolean lowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold(); }
/** * Verify if the java virtual machine is in a very low memory condition. The memory is considered very low if less than half a * specified value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code> * .The threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in very low memory condition. */ public static boolean veryLowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold() / 2; }
/** * Verify if the java virtual machine is in a low memory condition. The memory is considered low if less than a specified * value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code>.The * threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in low memory condition. */ public static boolean lowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold(); }
/** * Verify if the java virtual machine is in a very low memory condition. The memory is considered very low if less than half a * specified value is still available for processing. "Available" memory is calculated using <code>availableMemory()</code> * .The threshold value can be specified as the Mary property mary.lowmemory (in bytes). It defaults to 20000000 bytes. * * @return a boolean indicating whether or not the system is in very low memory condition. */ public static boolean veryLowMemoryCondition() { return MaryUtils.availableMemory() < lowMemoryThreshold() / 2; }