Black Horse Programmer _JVM Configuration parameter Description (Chinese version)

Source: Internet
Author: User
Tags bootstrap classes xms

You can share it with everyone you see.

1,-xmixed Mixed mode execution (default)
Mixed Mode execution

2,-xint interpreted mode execution only
Interpreting pattern execution

3.-xbootclasspath:<directories and Zip/jar files separated by;>
Set search path for bootstrap classes and resources
Set Zip/jar resource or Class (. class file) to store directory path

3.-xbootclasspath/a:<directories and Zip/jar files separated by;>
Append to end of bootstrap class path
Append Zip/jar resource or Class (. class file) to store directory path

4.-xbootclasspath/p:<directories and Zip/jar files separated by;>
Prepend in front of bootstrap class path
Pre-load Zip/jar resources or classes (. class files) to store directory paths

5,-XNOCLASSGC disable Class garbage collection
Turn off the class garbage collection feature

6,-XINCGC enable incremental garbage collection
Turn on the garbage collection feature of the class

7.-xloggc:<file> Log GC status to a file with time stamps
Log garbage back to a file.

8,-xbatch Disable background compilation
Turn off background compilation

9.-xms<size> set initial Java heap size
Set JVM initialization heap memory size

10.-xmx<size> Set maximum Java heap size
To set the maximum heap memory size for the JVM


11.-xss<size> set Java thread stack size
Set JVM stack memory size


12.-xprof Output CPU profiling data
Input CPU Profile table data

13,-xfuture enable strictest checks, anticipating future default
Perform rigorous code checks to predict what might be happening

14.-xrs reduce use of the OS signals by JAVA/VM (see documentation)
Restore operating system signals through the JVM

15,-xcheck:jni perform additional checks for JNI functions
Perform a check on the JNI function

16.-xshare:off do not attempt to use shared class data
Try not to use the data of a shared class

17.-xshare:auto use shared class data if possible (default)
Use the data of the shared class as much as possible

18,-xshare:on require using shared class data, otherwise fail.
Use shared class data as much as possible or fail to run


Common JVM parameter Configuration rollup

Heap Settings

-XMS: Initial heap Size (heap)

-XMX: Maximum heap size (heap)

-xx:newsize=n: Set the young generation size (refers to the NEW Generation)

-xx:newratio=n: Sets the ratio of the young generation to the old Generation.
such as: 3, the ratio of the young generation and the old generation is 1:3, the young generation of the entire young generation of old generation and 1/4

-xx:survivorratio=n: The ratio of Eden in the young generation to the two survivor districts. Note that there are two survivor districts. such as: 3, indicating Eden:survivor=3:2, a Survivor area of the entire young generation (NEW Generation) 1/5

-xx:maxpermsize=n: Setting the persistent generation size (permanent storage area of memory)
The full name of PermGen space is permanent Generation space, which refers to the permanent storage area of memory.

Collector Settings

-XX:+USESERIALGC: Setting up the serial collector

-XX:+USEPARALLELGC: Setting up a parallel collector

-XX:+USEPARALLEDLOLDGC: Setting up a parallel old generation collector

-XX:+USECONCMARKSWEEPGC: Setting the concurrency Collector

Garbage collection Statistics

-xx:+printgc

-xx:+printgcdetails

-xx:+printgctimestamps

-xloggc:filename

Parallel collector settings

-xx:parallelgcthreads=n: Sets the number of CPUs to use when the parallel collector is collected. The number of parallel collection threads.

-xx:maxgcpausemillis=n: Set maximum pause time for parallel collection

-xx:gctimeratio=n: Sets the percentage of time that garbage collection takes to run the program. The formula is 1/(1+n)

Concurrent collector Settings

-xx:+cmsincrementalmode: Set to incremental mode. Applies to single CPU conditions.

-xx:parallelgcthreads=n: Set the concurrency collector the number of CPUs used by the young generation collection method for parallel collection. The number of parallel collection threads.

Black Horse Programmer _JVM Configuration parameter Description (Chinese version)

Related Article

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.