GC(Garbage Collections)
1.1 설정 옵션
-XX:+UseSerialGC
-XX:+UseParallelGC (-XX:ParallelGCThreads)
-XX:+UseParallelOldGC
-XX:+UseConcMarkSweepGC
-XX:+UseG1GC
1.2 Tenuring Threshold 값 설정
-XX:MaxTenuringThreshold
1.3 CMS GC
-XX:+UseConcMarkSweepGC
-XX:ConcGCThreads
-XX:+UseParNewGC
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction
1.4 G1 GC
-XX:+UseG1GC
-XX:G1HeapRegionSize
-XX:MaxGCPauseMillis
-XX:InitiatingHeapOccupancyPercent
1.5 GC로그 출력
-verbose:gc
- 파일 생성
Java8: -Xloggc:/logs001/appadm/logs/gc.log
Java9: -Xlog:gc:/logs001/appadm/logs/gc.log
- 상세
XX:+PrintGCDetails
- Timestamp
-XX:+PrintGCTimeStamps
- GC Datestamp
-XX:+PrintGCDateStamps
1.6 IBM GC
-Xgcpolicy:gencon
-Xgcpolicy:optthruput
-Xgcpolicy:optavgpause
-Xgcpolicy:subpool
-Xgcpolicy:metronome
-verbose:gc
-Xverbosegclog:/logs001/appadm/logs/gc.log
-Xverbosegclog:/gc.log[X,Y] X개 파일에 Y개의 GC로그 남김
-Xcompactgc
댓글남기기