- -XX:+PRINTGC the Java Virtual machine is started, the log is printed whenever a GC is encountered.
- -xx:+printgcdetails The GC occurs, print a more verbose log.
- When the-XX:+PRINTHEAPATGC GC occurs, more detailed heap information is printed.
- -xx:+printgctimestamps GC occurs when the GC time is extra printed, which is the time offset for the virtual machine to start to the present.
- -xx:+printgcapplicationconcurrenttime the time that the application executes when the GC is printed.
- -xx:+printgcapplicationstoppedtime GC When the print application has a pause due to GC.
- -XX:+PRINTREFERENCEGC Trace soft references within the system, if referenced, virtual references, and finallize queues.
- -XLOGGC Specifies the save path for the GC log.
- -xx:+traceclassloading Tracking class loading.
- -xx:+traceclassunloading tracking class uninstallation.
- When the-xx:+printvmoptions program runs, the print virtual machine receives command-line display parameters.
- -xx:+printcommandlineflags prints explicit and implicit parameters that are passed to the virtual machine.
- -xx:+printflagsfinal prints the values of all system parameters.
- -XMS Specifies the size of the initial heap space, such as-xms20m
- -XMX Specifies the size of the maximum heap space, such as-xmx100m
- -XMN Specifies the size of the Cenozoic, such as-xmn1m
- -XX:MAXHEAPSIZE specifies the maximum memory.
- -xx:survivorratio specifies the proportional relationship between the Eden and From/to regions of the Cenozoic.
- -xx:newratio set the ratio of Cenozoic and Laosheng bands, note: This value means Laosheng band/Cenozoic.
- -xx:+heapdumponoutofmemoryerror memory overflow, export the entire heap of information, in conjunction with the next parameter.
- -xx:heapdumppath the saved path of the exported heap information, used in conjunction with the previous parameter.
- -xx:onoutofmemoryerror Memory Overflow error occurs when a script file is executed.
- -xx:permsize the size of the initial persistence zone (the JDK8 has been completely removed and the new metadata area is used to hold the metadata for the class).
- -xx:maxpermsize Configure the maximum size of the permanent area (the JDK8 has been completely removed and the new metadata area is used to hold the metadata for the class).
- -XX:MAXMETASPACESIZE Specifies the maximum available value for the persistence zone.
- -XSS Specifies the stack size of the thread.
- -XX:MAXDIRECTMEMORYSIZE Specifies the maximum available direct memory value.
- -SERVER specifies that the virtual machine works in server mode.
- -client specifies that the virtual machine works in client mode.
Common Java Virtual machine parameters