From 4289e206ae7895123067bfa86600324462e056ab Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 2 May 2017 21:33:24 -0400 Subject: [PATCH] Log JVM arguments on startup These can be very useful to have, let's have them at our fingertips in the logs (in case the JVM dies and we can no longer retrieve them, at least they are here). Relates #24451 --- core/src/main/java/org/elasticsearch/node/Node.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/elasticsearch/node/Node.java b/core/src/main/java/org/elasticsearch/node/Node.java index c89f31fbe74..54ce2bf7a20 100644 --- a/core/src/main/java/org/elasticsearch/node/Node.java +++ b/core/src/main/java/org/elasticsearch/node/Node.java @@ -291,6 +291,7 @@ public class Node implements Closeable { Constants.JVM_NAME, Constants.JAVA_VERSION, Constants.JVM_VERSION); + logger.info("JVM arguments {}", Arrays.toString(jvmInfo.getInputArguments())); warnIfPreRelease(Version.CURRENT, Build.CURRENT.isSnapshot(), logger); if (logger.isDebugEnabled()) {