Improve GC logging

Description

Right now the gc logging path is hardcoded to JAVA_OPTS="$JAVA_OPTS -Xloggc:./logstash-gc.log"

It would be cool if an ENV variable like LS_GC_LOG_PATH="./logstash-gc.log" could be overwritten with something like LS_GC_LOG_PATH="/tmp/logstash-gc.log"... Our logstash user doesn't have write permission in the current directory.

The current time logging is quite hard to read after a few days of service, I would suggest to this instead:
-XX:+PrintGCDateStamps

Environment

None

Status

Assignee

Logstash Developers

Reporter

Philipp H

Affects versions

Priority

Configure