jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.0 KiB

1 year ago
  1. ################################################################
  2. ##
  3. ## JVM configuration
  4. ##
  5. ################################################################
  6. ##
  7. ## WARNING: DO NOT EDIT THIS FILE. If you want to override the
  8. ## JVM options in this file, or set any additional options, you
  9. ## should create one or more files in the jvm.options.d
  10. ## directory containing your adjustments.
  11. ##
  12. ## See https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html
  13. ## for more information.
  14. ##
  15. ################################################################
  16. ################################################################
  17. ## IMPORTANT: JVM heap size
  18. ################################################################
  19. ##
  20. ## The heap size is automatically configured by Elasticsearch
  21. ## based on the available memory in your system and the roles
  22. ## each node is configured to fulfill. If specifying heap is
  23. ## required, it should be done through a file in jvm.options.d,
  24. ## and the min and max should be set to the same value. For
  25. ## example, to set the heap to 4 GB, create a new file in the
  26. ## jvm.options.d directory containing these lines:
  27. ##
  28. ## -Xms4g
  29. ## -Xmx4g
  30. ##
  31. ## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
  32. ## for more information
  33. ##
  34. ################################################################
  35. ################################################################
  36. ## Expert settings
  37. ################################################################
  38. ##
  39. ## All settings below here are considered expert settings. Do
  40. ## not adjust them unless you understand what you are doing. Do
  41. ## not edit them in this file; instead, create a new file in the
  42. ## jvm.options.d directory containing your adjustments.
  43. ##
  44. ################################################################
  45. ## GC configuration
  46. 8-13:-XX:+UseConcMarkSweepGC
  47. 8-13:-XX:CMSInitiatingOccupancyFraction=75
  48. 8-13:-XX:+UseCMSInitiatingOccupancyOnly
  49. ## G1GC Configuration
  50. # NOTE: G1 GC is only supported on JDK version 10 or later
  51. # to use G1GC, uncomment the next two lines and update the version on the
  52. # following three lines to your version of the JDK
  53. # 10-13:-XX:-UseConcMarkSweepGC
  54. # 10-13:-XX:-UseCMSInitiatingOccupancyOnly
  55. 14-:-XX:+UseG1GC
  56. ## JVM temporary directory
  57. -Djava.io.tmpdir=${ES_TMPDIR}
  58. ## heap dumps
  59. # generate a heap dump when an allocation from the Java heap fails; heap dumps
  60. # are created in the working directory of the JVM unless an alternative path is
  61. # specified
  62. -XX:+HeapDumpOnOutOfMemoryError
  63. # specify an alternative path for heap dumps; ensure the directory exists and
  64. # has sufficient space
  65. -XX:HeapDumpPath=data
  66. # specify an alternative path for JVM fatal error logs
  67. -XX:ErrorFile=logs/hs_err_pid%p.log
  68. ## JDK 8 GC logging
  69. 8:-XX:+PrintGCDetails
  70. 8:-XX:+PrintGCDateStamps
  71. 8:-XX:+PrintTenuringDistribution
  72. 8:-XX:+PrintGCApplicationStoppedTime
  73. 8:-Xloggc:logs/gc.log
  74. 8:-XX:+UseGCLogFileRotation
  75. 8:-XX:NumberOfGCLogFiles=32
  76. 8:-XX:GCLogFileSize=64m
  77. # JDK 9+ GC logging
  78. 9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m