jvm.options 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ## JVM configuration
  2. # Xms represents the initial size of total heap space
  3. # Xmx represents the maximum size of total heap space
  4. -Xms256m
  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. ## heap dumps
  40. # generate a heap dump when an allocation from the Java heap fails
  41. # heap dumps are created in the working directory of the JVM
  42. -XX:+HeapDumpOnOutOfMemoryError
  43. # specify an alternative path for heap dumps
  44. # ensure the directory exists and has sufficient space
  45. #-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof
  46. ## GC logging
  47. #-XX:+PrintGCDetails
  48. #-XX:+PrintGCTimeStamps
  49. #-XX:+PrintGCDateStamps
  50. #-XX:+PrintClassHistogram
  51. #-XX:+PrintTenuringDistribution
  52. #-XX:+PrintGCApplicationStoppedTime
  53. # log GC status to a file with time stamps
  54. # ensure the directory exists
  55. #-Xloggc:${LS_GC_LOG_FILE}
  56. # Entropy source for randomness
  57. -Djava.security.egd=file:/dev/urandom