I want to understand the difference between:
-XX:+PrintGC
and -verbose:gc
Apparently these look similar.
This article doesn't list the verbose:gc
http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
I also saw these two questions: How to redirect verbose garbage collection output to a file? and https://mcmap.net/q/733446/-what-do-xx-printgc-and-xx-printgcdetails-flags-do but couldn't get much understanding.
-verbose:gc
. Does it do anything in JDK9+? Or-Xlog:gc
is enough – Truncation