There is no -all option for jcmd command as per documentation. https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html
execute jcmd with -all option. GC is not triggered and can not see [Full GC (Heap Dump Initiated GC) in GC logs.
execute jcmd with -all option. GC is triggered and can see [Full GC (Heap Dump Initiated GC) in GC logs.
Is there any specific behaviour with -all option and not mentioned in documentation.
To get help on a jcmd (sub)command, use “help command”, but note that you still have to specify a pid to meet
jcmd’s formal command line pattern, i.e.which prints
(tested with JDK 17.0.2+8)