!7 p-tt { gc(); long totalCommitted = 0; for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { long committed = b.getUsage().getCommitted(); print(padLeft(str(toK(committed)), 7) + "K committed: " + b.getName() + ": " + b.getUsage()); totalCommitted += committed; } print("\nTotal committed memory: " + toK(totalCommitted) + "K"); }