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.
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.
Copyright © 2021 Jogjafile Inc.
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:Also you may want to limit the GC threads by using:
Where number of threads should be 1 thread for each server core.