Re:JDK 20 G1/Parallel/Serial GC Changes
by lkorinth on Friday March 17, 2023 @02:14PM
(#35200755)
You scan the live set (which most often is not dependent on the heap size). Bigger heap most often means better performance. Setting Xms to Xmx is good and valid if you know how much memory you need (which often is the case).
[1] https://docs.oracle.com/en/java/javase/19/gctuning/introduct...
[ Parent
| on HN ]
> However, the virtual machine is then unable to compensate if you make a poor choice.
> Test your systems under full load with Xms off and adjust, measure, experiment, repeat.
precisely what I'm saying.
>>You scan the live set (which most often is not dependent on the heap size).
This was an eye-opener for me; That GCs performance do not depend on the size of garbage but on the size of the live objects, finalizers excluded.