Modeling, analysis and throughput optimization of a generational garbage collector

  • Authors:
  • David Vengerov

  • Affiliations:
  • Sun Microsystems Laboratories

  • Venue:
  • Modeling, analysis and throughput optimization of a generational garbage collector
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

One of the garbage collectors in Sun's HotSpot Java™ Virtual Machine is known as the generational throughput collector, as it was designed to have a large throughput (fraction of time spent on application's work rather than on garbage collection). This paper derives an analytical expression for the throughput of this collector in terms of the following key parameters: the sizes of the "Young" and "Old" memory spaces and the value of the tenuring threshold. Based on the derived throughput model, a practical algorithm ThruMax is proposed for tuning the collector's parameters so as to formally maximize its throughput. This algorithm was implemented as an optional feature in an early release of JDK™ 7, and its performance was evaluated for various settings of the SPECjbb2005 workload. A consistent improvement in throughput was demonstrated when the ThruMax algorithm was enabled in JDK 7.