您的位置:首页 > 其它

JVM GC log file configuration

2014-12-03 13:50 232 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: