First, set the parameters
When using the Eclipse compiler, you can set the parameters of the virtual machine in the following ways:
Settings for the specific parameters:
In this case, we'll take the time of printing and recycling information.
Second, printing information interpretation:
Third, some common JVM parameters
-xx:+printgctimestamps:
Print this garbage collection time that the JVM started running
-xx:+printgcdeatils
Print details about garbage collection
-xloggc:<filename>
Output garbage collection information to a specified file
-xx:+printgcdatestamps
You need to print a timestamp option in the form of a calendar
-xx:+printgcapplicationstoppedtime
-xx:+printgcapplicationconcurrenttime
The time that the printing application blocked due to the VM Security point Operation and the elapsed time between the two security point operations
-xx:+printsafepointstatistics
The safe points of garbage collection can be separated from other safe points
Reference: The authoritative guide to Java performance optimization
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
JVM command-line options and GC logs