我想了解以下两者的区别:
这篇文章没有列出
-XX:+PrintGC
和 -verbose:gc
这两个看起来很相似。这篇文章没有列出
verbose:gc
。
http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
我还看到了这两个问题:如何将详细垃圾回收输出重定向到文件? 和 https://dev59.com/p3I-5IYBdhLWcg3whIqk#1818039
但是我并没有理解太多。
-verbose:gc
。在JDK9+中是否有任何作用?或者-Xlog:gc
就足够了。 - turbanoff-verbose:gc
的作用与-Xlog:gc
完全相同。 - apangin