jvm.options 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ## JVM configuration
  2. # Xms represents the initial size of total heap space
  3. # Xmx represents the maximum size of total heap space
  4. -Xms1g
  5. -Xmx1g
  6. ################################################################
  7. ## Expert settings
  8. ################################################################
  9. ##
  10. ## All settings below this section are considered
  11. ## expert settings. Don't tamper with them unless
  12. ## you understand what you are doing
  13. ##
  14. ################################################################
  15. ## GC configuration
  16. -XX:+UseParNewGC
  17. -XX:+UseConcMarkSweepGC
  18. -XX:CMSInitiatingOccupancyFraction=75
  19. -XX:+UseCMSInitiatingOccupancyOnly
  20. ## optimizations
  21. # disable calls to System#gc
  22. -XX:+DisableExplicitGC
  23. ## Locale
  24. # Set the locale language
  25. #-Duser.language=en
  26. # Set the locale country
  27. #-Duser.country=US
  28. # Set the locale variant, if any
  29. #-Duser.variant=
  30. ## basic
  31. # set the I/O temp directory
  32. #-Djava.io.tmpdir=$HOME
  33. # set to headless, just in case
  34. -Djava.awt.headless=true
  35. # ensure UTF-8 encoding by default (e.g. filenames)
  36. -Dfile.encoding=UTF-8
  37. # use our provided JNA always versus the system one
  38. #-Djna.nosys=true
  39. # Turn on JRuby invokedynamic
  40. -Djruby.compile.invokedynamic=true
  41. ## heap dumps
  42. # generate a heap dump when an allocation from the Java heap fails
  43. # heap dumps are created in the working directory of the JVM
  44. -XX:+HeapDumpOnOutOfMemoryError
  45. # specify an alternative path for heap dumps
  46. # ensure the directory exists and has sufficient space
  47. #-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof
  48. ## GC logging
  49. #-XX:+PrintGCDetails
  50. #-XX:+PrintGCTimeStamps
  51. #-XX:+PrintGCDateStamps
  52. #-XX:+PrintClassHistogram
  53. #-XX:+PrintTenuringDistribution
  54. #-XX:+PrintGCApplicationStoppedTime
  55. # log GC status to a file with time stamps
  56. # ensure the directory exists
  57. #-Xloggc:${LS_GC_LOG_FILE}
  58. # Entropy source for randomness
  59. -Djava.security.egd=file:/dev/urandom