我的jdk版本是:
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
这是我的测试代码:
List<GarbageCollectorMXBean> beans = ManagementFactory.getGarbageCollectorMXBeans();
for (GarbageCollectorMXBean bean : beans) {
System.out.println(bean.getName());
}
结果是:
PS Scavenge
PS MarkSweep
我知道PS Scavenge是年轻代垃圾收集器的“Parallel Scavenge”,“PS MarkSweep”是什么,是“Parallel Old”吗?