out.println("Memory size: " + rt.totalMemory()); out.println("Free memory: " + rt.freeMemory());
out.println("Memory size: " + NumberUtils.size(rt.totalMemory())); out.println("Free memory: " + NumberUtils.size(rt.freeMemory()));
	public void execute(		CommandLine cmdLine,		InputStream in,		PrintStream out,		PrintStream err)		throws Exception {					final Runtime rt = Runtime.getRuntime();		out.println("Memory size: " + rt.totalMemory());		out.println("Free memory: " + rt.freeMemory());		out.println("Starting gc...");				long start = System.currentTimeMillis();		rt.gc();        GCStatistics stats = Vm.getHeapManager().getStatistics();        Thread.yield();		long end = System.currentTimeMillis();				out.println("Memory size: " + rt.totalMemory());		out.println("Free memory: " + rt.freeMemory());		out.println("Time taken : " + (end-start) + "ms");        out.println("Stats      : " + stats.toString());	}