Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 states that G1 is sometimes better and sometimes worse than CMS. While the G1 collector is successful at limiting total pause time, it's still only a soft real-time collector. In other words, it cannot guarantee that it will not impact the application threads' ability to meet its deadlines, all of the time. However, it can operate within a well-defined set of bounds that make it ideal for soft real-time systems that need to maintain high-throughput performance.

I'd like to see actual measures of throughput and latency for Java's CMS (concurrent mark sweep) and G1 (garbage first) collectors.

  • Dr. Dobb's | G1: Java's Garbage First Garbage Collector
  • InfoQ | Sun's Garbage First Collector Largely Eliminates Low Latency/High Throughput Tradeoff
  • Java HotSpot Garbage Collection | The Garbage-First Garbage Collector
like image 219
Haywood Jablomey Avatar asked Jul 19 '10 16:07

Haywood Jablomey


1 Answers

The original scientific article ("Garbage-First Garbage Collection" by Detlefs, Flood, Heller and Printezis) contains some details on actual measures (in section 4).

like image 93
Thomas Pornin Avatar answered Nov 03 '22 17:11

Thomas Pornin