JAVA Garbage Collector Monitoring Configuration
For Garbage Collector monitoring add the below jvm arguments to the startup commands based on your Java:
To create a GC file in a custom folder specify the full path with file name in the <GCFilename>
To Know more details about the java properties run the below command in command prompt
java -XshowSettings:properties -version
For Oracle Sun Java use the below argument
-verbose:gc -Xloggc:<GCFilename>.gc
For JRockit Java use the below argument
-verbose:gc -Xverboselog:<GCFilename>.gc
For IBM Java use the below argument
-verbose:gc -Xverbosegclog:<GCFilename>.gc
For Open JDK use the below argument
-verbose:gc -Xloggc:<GCFilename>.gc
For Java 9 - Garbage-First (G1) Garbage Collector (GC) - Oracle Java
-verbose:gc -Xlog:gc:<GCFilename>.gc
Please sign in to leave a comment.
Comments
0 comments