|
37 | 37 | ################################################################ |
38 | 38 |
|
39 | 39 | ## GC configuration |
| 40 | +{% if es_version is version('7.6.0', '<') %} |
40 | 41 | -XX:+UseConcMarkSweepGC |
41 | 42 | -XX:CMSInitiatingOccupancyFraction=75 |
42 | 43 | -XX:+UseCMSInitiatingOccupancyOnly |
| 44 | +{% else %} |
| 45 | +8-13:-XX:+UseConcMarkSweepGC |
| 46 | +8-13:-XX:CMSInitiatingOccupancyFraction=75 |
| 47 | +8-13:-XX:+UseCMSInitiatingOccupancyOnly |
| 48 | +{% endif %} |
43 | 49 |
|
44 | 50 | ## G1GC Configuration |
45 | | -# NOTE: G1GC is only supported on JDK version 10 or later. |
| 51 | +# NOTE: G1 GC is only supported on JDK version 10 or later |
| 52 | +{% if es_version is version('7.6.0', '<') %} |
46 | 53 | # To use G1GC uncomment the lines below. |
47 | 54 | # 10-:-XX:-UseConcMarkSweepGC |
48 | 55 | # 10-:-XX:-UseCMSInitiatingOccupancyOnly |
|
53 | 60 | # 10-:-XX:G1ReservePercent=25 |
54 | 61 | # 10-:-XX:InitiatingHeapOccupancyPercent=30 |
55 | 62 | {% endif %} |
| 63 | +{% else %} |
| 64 | +# to use G1GC, uncomment the next two lines and update the version on the |
| 65 | +# following three lines to your version of the JDK |
| 66 | +# 10-13:-XX:-UseConcMarkSweepGC |
| 67 | +# 10-13:-XX:-UseCMSInitiatingOccupancyOnly |
| 68 | +14-:-XX:+UseG1GC |
| 69 | +14-:-XX:G1ReservePercent=25 |
| 70 | +14-:-XX:InitiatingHeapOccupancyPercent=30 |
| 71 | +{% endif %} |
56 | 72 |
|
57 | 73 | {% if es_version is version('7.5.0', '<') %} |
58 | 74 | ## DNS cache policy |
|
100 | 116 | -Dlog4j2.disable.jmx=true |
101 | 117 | {% endif %} |
102 | 118 |
|
| 119 | +## JVM temporary directory |
103 | 120 | -Djava.io.tmpdir=${ES_TMPDIR} |
104 | 121 |
|
105 | 122 | ## heap dumps |
|
110 | 127 |
|
111 | 128 | # specify an alternative path for heap dumps; ensure the directory exists and |
112 | 129 | # has sufficient space |
113 | | --XX:HeapDumpPath=${heap.dump.path} |
| 130 | +-XX:HeapDumpPath={{ es_heap_dump_path }} |
114 | 131 |
|
115 | 132 | # specify an alternative path for JVM fatal error logs |
116 | 133 | -XX:ErrorFile={{ es_log_dir }}/hs_err_pid%p.log |
|
0 commit comments