Force JMX hostname to 127.0.0.1

Closes gh-14836
pull/14914/head
Jack Gough 6 years ago committed by Stephane Nicoll
parent b832a2f604
commit 94770cc0fd

@ -133,6 +133,7 @@ public class StartMojo extends AbstractRunMojo {
remoteJmxArguments.add("-Dcom.sun.management.jmxremote.port=" + this.jmxPort); remoteJmxArguments.add("-Dcom.sun.management.jmxremote.port=" + this.jmxPort);
remoteJmxArguments.add("-Dcom.sun.management.jmxremote.authenticate=false"); remoteJmxArguments.add("-Dcom.sun.management.jmxremote.authenticate=false");
remoteJmxArguments.add("-Dcom.sun.management.jmxremote.ssl=false"); remoteJmxArguments.add("-Dcom.sun.management.jmxremote.ssl=false");
remoteJmxArguments.add("-Djava.rmi.server.hostname=127.0.0.1");
jvmArguments.getArgs().addAll(remoteJmxArguments); jvmArguments.getArgs().addAll(remoteJmxArguments);
} }
return jvmArguments; return jvmArguments;

Loading…
Cancel
Save