Common Java Virtual machine parameters

Source: Internet
Author: User

  • -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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.