Java Garbage Collection Logging: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 11: Line 11:
</pre>
</pre>


where <file> can be absolute or relative. In case of a relative path, it is relative to the current directory.
<pre>
-verbose:gc
</pre>
<pre>
-XX:+PrintGCDetails
</pre>


where <file> can be absolute or relative. In case of a relative path, it is relative to the current directory.
<pre>
-XX:+PrintGCDateStamps
</pre>
 
<pre>
-XX:+UseGCLogFileRotation
</pre>
 
<pre>
-XX:NumberOfGCLogFiles=5
</pre>
 
<pre>
-XX:GCLogFileSize=3M
</pre>

Revision as of 02:49, 13 February 2017

Internal

Command Line Options

Java 8

-Xloggc:<file>

where <file> can be absolute or relative. In case of a relative path, it is relative to the current directory.

-verbose:gc
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=5
-XX:GCLogFileSize=3M