Is there a way I can find GC type (parallel or CMS or G1 ) from jnconsole or jvisualvm? In my case, I see below related info:
Garbage Collector : Name='PS MarkSweep'....
Garbage Collector : Name='PS Scavenge'....
When I use the command -XX: +PrintCommandLineFlags
it displays -XX:+UseParallelGC
, so it confirms its parallel GC collector(though I though its CMS because of name PS MarkSweep
in jconsole/jvisualvm) .
What will be the GC collector values for CMS and G1?