來源:http://www.javashuo.com/article/p-hfxvefyd-cv.htmlhtml
垃圾收集算法:算法
- 標記清除算法
- 複製算法
- 標記壓縮算法
- 分帶收集算法
收集器(具體實現)多線程
- serial收集器 (串行收集器:新生代複製,老年代複製壓縮) -XX:+ UseSerialGC
- parNew收集器(多線程版本serial收集器,老年代串行,新生代並行) -XX:+UseParNewGC
- parallel收集器
- cms(Concurrent Mark Sweep)
- initial mark -> stop the world
- concurrent mark -> GC Root Tracing
- remark -> stop world
- concurrent sweep
- G1垃圾收集器
流行的幾種組合:線程
- serial
- ParNew + CMS
- ParallelYoung + ParallelOld
- G1GC