2 # Copyright © 2018 Amdocs, AT&T, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 ################################################################
19 ## IMPORTANT: JVM heap size
20 ################################################################
22 ## You should always set the min and max JVM heap
23 ## size to the same value. For example, to set
24 ## the heap to 4 GB, set:
29 ## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
30 ## for more information
32 ################################################################
34 # Xms represents the initial size of total heap space
35 # Xmx represents the maximum size of total heap space
41 ################################################################
43 ################################################################
45 ## All settings below this section are considered
46 ## expert settings. Don't tamper with them unless
47 ## you understand what you are doing
49 ################################################################
53 -XX:+UseConcMarkSweepGC
54 -XX:CMSInitiatingOccupancyFraction=75
55 -XX:+UseCMSInitiatingOccupancyOnly
59 # pre-touch memory pages used by the JVM during initialization
67 # explicitly set the stack size
70 # set to headless, just in case
71 -Djava.awt.headless=true
73 # ensure UTF-8 encoding by default (e.g. filenames)
76 # use our provided JNA always versus the system one
79 # turn off a JDK optimization that throws away stack traces for common
80 # exceptions because stack traces are important for debugging
81 -XX:-OmitStackTraceInFastThrow
83 # flags to configure Netty
84 -Dio.netty.noUnsafe=true
85 -Dio.netty.noKeySetOptimization=true
86 -Dio.netty.recycler.maxCapacityPerThread=0
89 -Dlog4j.shutdownHookEnabled=false
90 -Dlog4j2.disable.jmx=true
94 # generate a heap dump when an allocation from the Java heap fails
95 # heap dumps are created in the working directory of the JVM
96 -XX:+HeapDumpOnOutOfMemoryError
99 # specify an alternative path for heap dumps
100 # ensure the directory exists and has sufficient space
101 #-XX:HeapDumpPath=/heap/dump/path
106 #-XX:+PrintGCTimeStamps
107 #-XX:+PrintGCDateStamps
108 #-XX:+PrintClassHistogram
109 #-XX:+PrintTenuringDistribution
110 #-XX:+PrintGCApplicationStoppedTime
112 # log GC status to a file with time stamps
113 # ensure the directory exists
116 # By default, the GC log file will not rotate.
117 # By uncommenting the lines below, the GC log file
118 # will be rotated every 128MB at most 32 times.
119 #-XX:+UseGCLogFileRotation
120 #-XX:NumberOfGCLogFiles=32
121 #-XX:GCLogFileSize=128M