mirror of
https://github.com/elastic/logstash.git
synced 2025-04-22 21:57:26 -04:00
OpenJDK versions 11.0.15+10, 17.0.3+7 introduced new functionality to allow Java to enable strict path checking. This included disallowing the use of : in any place other than directly after the drive letter. Unfortunately, this check had the side effect of breaking compatibility with special device paths, such as NUL:, which in turn, prevents Logstash from starting. This feature was gated by the use of the jdk.io.File.enableADS property with a value of true disabling the check. This property was introduced with the default value of false, which prevents logstash from starting in a Windows environment. While the next release is anticipated to set this value to true, this commit explicitly sets that value to enable Logstash to be able to start correctly. Relates: #14066
87 lines
2.2 KiB
Text
87 lines
2.2 KiB
Text
## JVM configuration
|
|
|
|
# Xms represents the initial size of total heap space
|
|
# Xmx represents the maximum size of total heap space
|
|
|
|
-Xms1g
|
|
-Xmx1g
|
|
|
|
################################################################
|
|
## Expert settings
|
|
################################################################
|
|
##
|
|
## All settings below this section are considered
|
|
## expert settings. Don't tamper with them unless
|
|
## you understand what you are doing
|
|
##
|
|
################################################################
|
|
|
|
## GC configuration
|
|
8-13:-XX:+UseConcMarkSweepGC
|
|
8-13:-XX:CMSInitiatingOccupancyFraction=75
|
|
8-13:-XX:+UseCMSInitiatingOccupancyOnly
|
|
|
|
## Locale
|
|
# Set the locale language
|
|
#-Duser.language=en
|
|
|
|
# Set the locale country
|
|
#-Duser.country=US
|
|
|
|
# Set the locale variant, if any
|
|
#-Duser.variant=
|
|
|
|
## basic
|
|
|
|
# set the I/O temp directory
|
|
#-Djava.io.tmpdir=$HOME
|
|
|
|
# set to headless, just in case
|
|
-Djava.awt.headless=true
|
|
|
|
# ensure UTF-8 encoding by default (e.g. filenames)
|
|
-Dfile.encoding=UTF-8
|
|
|
|
# Set enableADS to true to enable Logstash to run on certain versions of the JDK
|
|
-Djdk.io.File.enableADS=true
|
|
|
|
# use our provided JNA always versus the system one
|
|
#-Djna.nosys=true
|
|
|
|
# Turn on JRuby invokedynamic
|
|
-Djruby.compile.invokedynamic=true
|
|
# Force Compilation
|
|
-Djruby.jit.threshold=0
|
|
# Make sure joni regexp interruptability is enabled
|
|
-Djruby.regexp.interruptible=true
|
|
|
|
## heap dumps
|
|
|
|
# generate a heap dump when an allocation from the Java heap fails
|
|
# heap dumps are created in the working directory of the JVM
|
|
-XX:+HeapDumpOnOutOfMemoryError
|
|
|
|
# specify an alternative path for heap dumps
|
|
# ensure the directory exists and has sufficient space
|
|
#-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof
|
|
|
|
## GC logging
|
|
#-XX:+PrintGCDetails
|
|
#-XX:+PrintGCTimeStamps
|
|
#-XX:+PrintGCDateStamps
|
|
#-XX:+PrintClassHistogram
|
|
#-XX:+PrintTenuringDistribution
|
|
#-XX:+PrintGCApplicationStoppedTime
|
|
|
|
# log GC status to a file with time stamps
|
|
# ensure the directory exists
|
|
#-Xloggc:${LS_GC_LOG_FILE}
|
|
|
|
# Entropy source for randomness
|
|
-Djava.security.egd=file:/dev/urandom
|
|
|
|
# Copy the logging context from parent threads to children
|
|
-Dlog4j2.isThreadContextMapInheritable=true
|
|
|
|
17-:--add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
|
17-:--add-opens java.base/java.io=ALL-UNNAMED
|