Does it make sense to point the extra GC to parallel?

Today we use parallel sweep labels, specifying it like this:

-XX:+UseConcMarkSweepGC 

I saw several articles recommending the use of additional parameters in this form:

 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC 

From what I read, UseParNewGC is indicated automatically when using parallel soles and CMSIncrementalMode if the machine has only 1 or 2 processors.

So, does it make any sense to use these additional parameters, given that most of our machines are quad-core (which makes the processor volume visible for a 4 or 8 system)?

Thanks!

+6
java garbage-collection parameters
source share
1 answer

-XX:+CMSIncrementalMode will try to trigger a joint -XX:+CMSIncrementalMode when it determines that this may be the right time for this. I used it, and I do not believe it helped.

IMHO, the most useful for the game is likely to be a new size, for example. -XX: NewSize = 1g -mx2g either makes it bigger or smaller, depending on how long you live on your short objects. those. you want the eden size to be small but large enough so that objects are usually discarded by the time it is cleaned.

+2
source share

All Articles