GC Time Ratio Calculator

The Parallel Garbage Collector or Throughput Collector has an argument to set the target application throughput. The argument is:

-XX:GCTimeRatio=<N>

To set the target throughput, you need to calculate the correct GC Time Ratio value and input in the file. The below calculator helps you to calculate the correct GC Time Ratio value (N) on the basis of the provided target throughput.


Example

If application throughput is 90%, then, as per the above calculator, the value of -XX:GCTimeRatio would be 9.

If you want to know more about Application Throughput in terms of Garbage Collection, refer to Throughput in Garbage Collection.


You may be interested: