0 Replies Latest reply: Apr 9, 2010 12:27 PM by 800573 RSS

    Différence between runtime.totalMemory() and getHeapMemoryUsage

    800573
      Hi
      i have an ambiguity to understand the difference between runtime.totalMemory() and getHeapMemoryUsage:
      1- is Runtime.getRuntime().maxMemory() = memoryMXBean.getHeapMemoryUsage().getMax() ?
      2- is Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); = memoryMXBean.getHeapMemoryUsage().getUsed()?
      3- is Runtime.getRuntime().totalMemory() = memoryMXBean.getHeapMemoryUsage().getInit() ?