Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #################
  2. # GC SETTINGS #
  3. #################
  4. ### G1 Settings (experimental, comment previous section and uncomment section below to enable)
  5.  
  6. ## Use the Hotspot garbage-first collector.
  7. -XX:+UseG1GC
  8. #
  9. ## Have the JVM do less remembered set work during STW, instead
  10. ## preferring concurrent GC. Reduces p99.9 latency.
  11. -XX:G1RSetUpdatingPauseTimePercent=5
  12. #
  13. ## Main G1GC tunable: lowering the pause target will lower throughput and vise versa.
  14. ## 200ms is the JVM default and lowest viable setting
  15. ## 1000ms increases throughput. Keep it smaller than the timeouts in cassandra.yaml.
  16. -XX:MaxGCPauseMillis=15000
  17.  
  18. ## Optional G1 Settings
  19.  
  20. # Save CPU time on large (>= 16GB) heaps by delaying region scanning
  21. # until the heap is 70% full. The default in Hotspot 8u40 is 40%.
  22. -XX:InitiatingHeapOccupancyPercent=30
  23. # For systems with > 8 cores, the default ParallelGCThreads is 5/8 the number of logical cores.
  24. # Otherwise equal to the number of cores when 8 or less.
  25. # Machines with > 10 cores should try setting these to <= full cores.
  26. -XX:ParallelGCThreads=8
  27. # By default, ConcGCThreads is 1/4 of ParallelGCThreads.
  28. # Setting both to the same value can reduce STW durations.
  29. -XX:ConcGCThreads=8
  30.  
  31. ### GC logging options -- uncomment to enable
  32.  
  33. -XX:+PrintGCDetails
  34. -XX:+PrintGCDateStamps
  35. -XX:+PrintHeapAtGC
  36. -XX:+PrintTenuringDistribution
  37. -XX:+PrintGCApplicationStoppedTime
  38. -XX:+PrintPromotionFailure
  39. -XX:PrintFLSStatistics=1
  40. -Xloggc:/var/log/cassandra/gc.log
  41. -XX:+UseGCLogFileRotation
  42. -XX:NumberOfGCLogFiles=10
  43. -XX:GCLogFileSize=10M
  44.  
  45.  
  46. # Experimental options to increase Eden size to solve problem with GC
  47. -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement