Relative Performance of Java's Garbage First (G1) Garbage Collector?

前端 未结 5 1971
你的背包
你的背包 2021-01-31 03:28

Does anyone know of any performance benchmarks of Java\'s new Garbage First (G1) Garbage Collector (as compared to the \"old\" GCs)?

In terms of GC pause times, Sun sta

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 04:00

    G1 is compared to CMS mostly faster due to the idea of multi-threads. Compared to the Parallel-GC I don't know - it might be the same. Of course G1 is more real-time due to not two kinds of threads running (mostly the small one). It's faster because any thread should produce the same impact to performance. Even compacting is done only on copying. For more details have a closer look at this: http://geekroom.de/java/java-expertise-g1-fur-java-7/

提交回复
热议问题