类 MemoryLimitCalculator

java.lang.Object
org.dromara.dynamictp.common.queue.MemoryLimitCalculator

public class MemoryLimitCalculator extends Object
Runtime.freeMemory() technology is used to calculate the memory limit by using the percentage of the current maximum available memory. Note: this class simplifies the original implementation.
另请参阅:
  • 构造器详细资料

    • MemoryLimitCalculator

      public MemoryLimitCalculator()
  • 方法详细资料

    • maxAvailable

      public static long maxAvailable()
      Get the maximum available memory of the current JVM.
      返回:
      maximum available memory