Usage:
You can set the target number of mixed garbage collections after marking cycle with:
-XX:G1MixedGCCountTarget=xxx, where xxx is desired amount.
Examples:
To set the amount of garbage collections to 5 use:
-XX: G1MixedGCCountTarget=5
Description:
G1 (Garbage First) GC is designed for apps in multi-processor environments with large memory space (more than 4GB). It is available from the JDK7 Update 4. Unlike other collectors, the G1 collector partitions the heap into a set of equal-sized heap regions (usually 1MB to 32MB) chunks, prioritizes them, and then performs the garbage collection on those chunks based on the priority. We can tune G1 with additional options, one of them is G1MixedGCCountTarget. It sets the target number of mixed garbage collections after a marking cycle to collect old regions with at most G1MixedGCLIveThresholdPercent live data. The default is 8 mixed garbage collections. The goal for mixed collections is to be within this target number.
Default Value:
Default value is 8.
Errors:
None
Arguments related:
TODO link UseG1GC , MaxHeapSize, MinHeapFreeRatio, MaxHeapFreeRatio, Xmx, Xms, NewSize
Related Posts:
- Quick start on Java GC
- Garbage collection tuning
- Garbage collectors documentation
- Quick start on Java GC
NOTE:
If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your insights will help the entire 10+ million java developer community to develop one standard source of documentation for all the JVM arguments.
Edit your Comment