GC详解
package com.shi.gc; /** * 查看默认GC: -XX:+PrintCommandLineFlags -version * 结果: -XX:InitialHeapSize=127115712 -XX:MaxHeapSize=2033851392 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) * @author shiye * */ public class TestGC { public static void main(String[] args) { } }