7.19.17 -Xloggc:file
-Xloggc:file outputs logs to the file specified in file whenever a GC event occurs.
Description
Similar to -verbose:gc, -Xloggc:file sends a report whenever a GC event occurs. In addition, the data about that event is recorded in the file specified in file. In addition to the information that is reported when -verbose:gc is specified, the amount of time (in seconds) that has elapsed from the first GC event, is included at the beginning of each event report.
Syntax
-Xloggc:file
Specifiable values
There are no input restrictions.