JVM GC log file configuration

来源:互联网 发布:warframe下载数据损坏 编辑:程序博客网 时间:2024/05/22 09:49

Solution Manager may collect and analyze JVM GC logs for Apache Tomcat. However, by default no GC log is enabled on the Tomcat server.

To enable GC logging please set the following JVM system property when you start Tomcat’s JVM:


-Xloggc:<path to GC.log> - Enables logging for the JVM GC processes into the log file specified by the <path to GC.log> parameter. Please use an absolute path here.

-XX:+PrintGCDetails  - Gives details about the GCs, such as: Size of the young and old generation before and after GCs; Size of total heap Time it takes for a GC to happen in young and old generation; Size of objects promoted at every GC

-XX:+PrintGCTimeStamps - Prints the times at which the GCs happen relative to the start of the application.

0 0
原创粉丝点击