Skip to content

Commit

Permalink
Log whether or not we are using the bundled JDK (#64255)
Browse files Browse the repository at this point in the history
This commit adds logging to indicate whether or not we are using the
bundled JDK. We distinguish between using a distribution that bundles
the JDK versus using a distribution that does not bundle the JDK.
  • Loading branch information
jasontedor committed Oct 28, 2020
1 parent 2983584 commit 78c741a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/main/java/org/elasticsearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ protected Node(final Environment initialEnvironment,
Constants.JVM_NAME,
Constants.JAVA_VERSION,
Constants.JVM_VERSION);
logger.info("JVM home [{}]", System.getProperty("java.home"));
if (jvmInfo.getBundledJdk()) {
logger.info("JVM home [{}], using bundled JDK [{}]", System.getProperty("java.home"), jvmInfo.getUsingBundledJdk());
} else {
logger.info("JVM home [{}]", System.getProperty("java.home"));
}
logger.info("JVM arguments {}", Arrays.toString(jvmInfo.getInputArguments()));
if (Build.CURRENT.isProductionRelease() == false) {
logger.warn(
Expand Down

0 comments on commit 78c741a

Please sign in to comment.