jrockit deterministic gc

528 Views Asked by At

Is it granted that all garbage will be collected with options -Xgc:deterministic and very big-XpauseTarget=5000.

I not so much care about performance, I need to be sure that each garbage object is collected.

1

There are 1 best solutions below

2
On

This is what it says in the documentation:

The garbage collector is optimized for very short and deterministic pause times.The garbage collector will aim on keeping the garbage collection pauses below a given pause target. How well it will succeed depends on the application and the hardware. For example, a pause target on 30 ms has been verified on an application with 1 GB heap and an average of 30% live data or less at collection time, running on the following hardware:

  1. 2 x Intel Xeon 3.6 GHz, 2 MB level 2 cache, 4 GB RAM
  2. 4 x Intel Xeon 2.0 GHz, 0.5 MB level 2 cache, 8 GB RAM

Also you may want to limit the GC threads by using:

-XXgcthreads:<# threads>

Where number of threads should be 1 thread for each server core.