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