[Backport 7.17]Add info log of JVM flags used to configure Logstash (#13531) (#13632)

Logs the JVM flags and options used to launch Logstash.

(cherry picked from commit d4bdcc936d)
----
Original message:

 Add info log of JVM flags used to configure Logstash (#13531)

Logs the JVM flags and options used to launch Logstash.
This commit is contained in:
Andrea Selva 2022-01-18 14:55:36 +01:00 committed by GitHub
parent dc4368e0c6
commit 920e821932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,6 +340,8 @@ class LogStash::Runner < Clamp::StrictCommand
end
logger.info("Starting Logstash", "logstash.version" => LOGSTASH_VERSION, "jruby.version" => RUBY_DESCRIPTION)
jvmArgs = ManagementFactory.getRuntimeMXBean().getInputArguments()
logger.info "JVM bootstrap flags: #{jvmArgs}"
# Add local modules to the registry before everything else
LogStash::Modules::Util.register_local_modules(LogStash::Environment::LOGSTASH_HOME)