I pass the below value to jvms hosted on Jboss :
<option value="-XX:+PrintGCDetails"/>
<option value="-XX:+PrintGCTimeStamps"/>
<option value="-XX:+PrintGCDateStamps"/>
<option value="-XX:+UseGCLogFileRotation"/>
<option value="-XX:NumberOfGCLogFiles=50"/>
<option value="-XX:GCLogFileSize=50M"/>
<option value="-Xloggc:=/some/path/gc-%t.log"/>
But I dont' see any files with gc* under /some/path/ location.
I use JDK 8
The last option looks wrong, the
=character does not belong there, so it should be:Please note that the option dependes on the JDK/JRE version:
-Xloggc:LOG_FILE_PATH-Xlog:gc:LOG_FILE_PATH, see https://openjdk.java.net/jeps/158