What is the difference between -XX: + UseParallelGC and -XX: -UseParallelGC? Most links point to the first, but http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html mentions the second.
Thank.
From the documentation:
Logical options are enabled with -XX:+<option>and disabled with-XX:-<option>
-XX:+<option>
-XX:-<option>
So, this means that it -XX:+UseParallelGCwill enable parallel garbage collection, and -XX:-UseParallelGCdisable it.
-XX:+UseParallelGC
-XX:-UseParallelGC
Line:
Includes ParallelGC . Pay attention to the sign.+
+
Disables it. Pay attention to the sign -.
-