Skip to content

Commit

Permalink
Add example configuration for rotating GC log (elastic#22715)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
danielmitterdorfer committed Jan 20, 2017
1 parent 6961ab3 commit 12d7ec2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distribution/src/main/resources/config/jvm.options
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@
# 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

# Elasticsearch 5.0.0 will throw an exception on unquoted field names in JSON.
# If documents were already indexed with unquoted fields in a previous version
# of Elasticsearch, some operations may throw errors.
Expand Down

0 comments on commit 12d7ec2

Please sign in to comment.