标签: java heap
运行时运行时= Runtime.getRuntime(); System.out.println(" Used Memory:" +(runtime.totalMemory() - runtime.freeMemory())/ mb);
Outputi我每次都是零,但我有两个进程在运行。