gc时打印日志到文件参数:
关闭System.gc();
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC
-Xloggc:log/gc.log
关闭System.gc();
-XX:+DisableExplicitGC