Print GC logs

The required parameters are as follows:

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

Gc.log will generate a file in the root directory, which records details of gc.

It can also be monitored by gc jvisualvm tools under jdk bin directory.

 

Guess you like

Origin www.cnblogs.com/lishuaiqi/p/11622052.html