https://docs.oracle.com/javase/10/gctuning/factors-affecting-garbage-collection-performance.htm
- -Xms<minimum>: min heap size
- -Xmx<max>: max heap size
- -XX:MinHeapFreeRatio=<min>: min (free space)/(live objects)
- -XX:MaxHeapFreeRatio=<max>: max (free space)/(live objects)
- -XX:NewRatio=<number>: (young generation)/(old generation)
- -XX:NewSize=<min>: min young generation size
- -XX:MaxNewSize=<max>: max young generation size
- -XX:SurvivorRatio=<number>: (eden space)/(survivor space)
https://docs.oracle.com/javase/10/gctuning/parallel-collector1.htm
- -XX:+UseParallelGC: use Parallel Collector
- -XX:ParallelGCThreads=<N>: number of garbage collector threads
- -XX:MaxGCPauseMillis=<N>: max GC pause time (milliseconds)
- -XX:GCTimeRatio=<N>: (garbage collection time)/(application time)=1/(1+N)
- -XX:YoungGenerationSizeIncrement=<Y>: percentage for the young generation growing
- -XX:TenuredGenerationSizeIncrement=<T>: percentage for the old generation growing
- -XX:AdaptiveSizeDecrementScaleFactor=<D>: percentage for generation shrinks