Enable the GC log of the jvm runtime (continuous update)

When experiencing performance issues with the Java runtime, looking at gc logs is often the first thing we can do. However, the settings of different versions of Java will be slightly different.

JDK 1.8

Enable the log information and records it in the gc.log file.

1
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:./gc.log

本文标题:Enable the GC log of the jvm runtime (continuous update)

文章作者:Morning Star

发布时间:2022年01月08日 - 11:01

最后更新:2022年01月08日 - 11:01

原始链接:https://www.mls-tech.info/java/java-enable-gc-log-en/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。