Skip to content

Commit 7a91117

Browse files
committed
add upstream jvm options to ingestor_syslog
1 parent 11d3b2b commit 7a91117

File tree

1 file changed

+93
-1
lines changed

1 file changed

+93
-1
lines changed
Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,96 @@
1-
# the default /tmp dir is often noexec, so we need to use one that is not.
1+
################################################################
2+
# logstash base config
3+
# this is the stuff from Elastic. We should update this whenever we update logstash
4+
################################################################
5+
## JVM configuration
6+
7+
# Xms represents the initial size of total heap space
8+
# Xmx represents the maximum size of total heap space
9+
10+
-Xms1g
11+
-Xmx1g
12+
13+
################################################################
14+
## Expert settings
15+
################################################################
16+
##
17+
## All settings below this section are considered
18+
## expert settings. Don't tamper with them unless
19+
## you understand what you are doing
20+
##
21+
################################################################
22+
23+
## GC configuration
24+
8-13:-XX:+UseConcMarkSweepGC
25+
8-13:-XX:CMSInitiatingOccupancyFraction=75
26+
8-13:-XX:+UseCMSInitiatingOccupancyOnly
27+
28+
## Locale
29+
# Set the locale language
30+
#-Duser.language=en
31+
32+
# Set the locale country
33+
#-Duser.country=US
34+
35+
# Set the locale variant, if any
36+
#-Duser.variant=
37+
38+
## basic
39+
40+
# set the I/O temp directory
41+
#-Djava.io.tmpdir=$HOME
42+
43+
# set to headless, just in case
44+
-Djava.awt.headless=true
45+
46+
# ensure UTF-8 encoding by default (e.g. filenames)
47+
-Dfile.encoding=UTF-8
48+
49+
# use our provided JNA always versus the system one
50+
#-Djna.nosys=true
51+
52+
# Turn on JRuby invokedynamic
53+
-Djruby.compile.invokedynamic=true
54+
# Force Compilation
55+
-Djruby.jit.threshold=0
56+
# Make sure joni regexp interruptability is enabled
57+
-Djruby.regexp.interruptible=true
58+
59+
## heap dumps
60+
61+
# generate a heap dump when an allocation from the Java heap fails
62+
# heap dumps are created in the working directory of the JVM
63+
-XX:+HeapDumpOnOutOfMemoryError
64+
65+
# specify an alternative path for heap dumps
66+
# ensure the directory exists and has sufficient space
67+
#-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof
68+
69+
## GC logging
70+
#-XX:+PrintGCDetails
71+
#-XX:+PrintGCTimeStamps
72+
#-XX:+PrintGCDateStamps
73+
#-XX:+PrintClassHistogram
74+
#-XX:+PrintTenuringDistribution
75+
#-XX:+PrintGCApplicationStoppedTime
76+
77+
# log GC status to a file with time stamps
78+
# ensure the directory exists
79+
#-Xloggc:${LS_GC_LOG_FILE}
80+
81+
# Entropy source for randomness
82+
-Djava.security.egd=file:/dev/urandom
83+
84+
# Copy the logging context from parent threads to children
85+
-Dlog4j2.isThreadContextMapInheritable=true
86+
87+
17-:--add-opens java.base/sun.nio.ch=ALL-UNNAMED
88+
17-:--add-opens java.base/java.io=ALL-UNNAMED
89+
################################################################
90+
# end logstash base config.
91+
# everything after this is our customizations
92+
################################################################
93+
294
-Djava.io.tmpdir=/var/vcap/sys/tmp/ingestor_syslog
395

496
<% p('logstash.jvm_options').each do |opt| %><%= opt %><% end %>

0 commit comments

Comments
 (0)