总结几个G1垃圾收集器重要调优参数

大致按重要性排序

  • -XX:+UseG1GC
  • -Xmx< nG >
  • -Xms< nG >
  • -XX:MaxGCPauseMillis=< ms >
  • -XX:InitiatingHeapOccupancyPercent=< % >
  • -XX:+PrintGCDetails
  • -XX:+PrintAdaptiveSizePolicy
  • -XX:G1HeapRegionSize
  • -XX:+PrintReferenceGC
  • -XX:+ParallelRefProcEnabled
  • -XX:ParallelGCThreads=n
  • -XX:ConcGCThreads=n
  • -XX:G1MixedGCCountTarget=n

#

推荐几篇Monica文
Tips for Tuning the Garbage First Garbage Collector
Getting Started with the G1 Garbage Collector
Garbage First Garbage Collector Tuning
Silicon Valley Java Performance Meetup

你可能感兴趣的:(Java)