static S renderMemoryPoolSizes2() { new L lines; long totalCommitted = 0; for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { long committed = b.getUsage().getCommitted(); lines.add(padLeft(str(toM(committed)), 4) + " MB committed: " + b.getName()); totalCommitted += committed; } lines.add(""); lines.add("Total committed memory: " + toM(totalCommitted) + " MB"); ret lines(lines); }