新生代收集器的名称:
// Oracle (Sun) HotSpot
// -XX:+UseSerialGC
'Copy',
// -XX:+UseParNewGC
'ParNew',
// -XX:+UseParallelGC
'PS Scavenge',
// Oracle (BEA) JRockit
// -XgcPrio:pausetime
'Garbage collection optimized for short pausetimes Young Collector',
// -XgcPrio:throughput
'Garbage collection optimized for throughput Young Collector',
// -XgcPrio:deterministic
'Garbage collection optimized for deterministic pausetimes Young Collector'
旧生代收集器名称
// Oracle (Sun) HotSpot
// -XX:+UseSerialGC
'MarkSweepCompact',
// -XX:+UseParallelGC and (-XX:+UseParallelOldGC or -XX:+UseParallelOldGCCompacting)
'PS MarkSweep',
// -XX:+UseConcMarkSweepGC
'ConcurrentMarkSweep',
// Oracle (BEA) JRockit
// -XgcPrio:pausetime
'Garbage collection optimized for short pausetimes Old Collector',
// -XgcPrio:throughput
'Garbage collection optimized for throughput Old Collector',
// -XgcPrio:deterministic
'Garbage collection optimized for deterministic pausetimes Old Collector'