Add example configuration for rotating GC log (#22715)

By default, the JVM GC log file grows without
limitation. This is inconvenient for a long running
process like Elasticsearch.

With this commit we add an example configuration
for a rotating GC log in `conig/jvm.options`.
This commit is contained in:
Daniel Mitterdorfer 2017-01-20 13:23:04 +01:00 committed by GitHub
parent 54105f3ddd
commit 4073349267
1 changed files with 7 additions and 0 deletions

View File

@ -97,3 +97,10 @@
# log GC status to a file with time stamps
# ensure the directory exists
#-Xloggc:${loggc}
# By default, the GC log file will not rotate.
# By uncommenting the lines below, the GC log file
# will be rotated every 128MB at most 32 times.
#-XX:+UseGCLogFileRotation
#-XX:NumberOfGCLogFiles=32
#-XX:GCLogFileSize=128M