GC logs are vital artifacts for troubleshooting memory / CPU issues and optimizing application performance.
Enable java 9 GC Logs
To enable GC logging in Java 9, a new system property has been introduced. You need to pass this system property during application startup:
-Xlog: ds *: file =
Example:
-Xlog: ds *: File = / tmp / logs / gc.log
Analysis tools
The format of the GC log is completely changed in Java 9. For the analysis of GC logs in Java 9, it is highly recommended to use GC log analysis tools such as GCeasy, HPJmeter. These tools analyze java 9 GC logs and generate excellent graphical data visualization, reports on key performance indicators and a number of other useful metrics.
source share