diff --git a/test/metric_value_benchmark/jmx_test.go b/test/metric_value_benchmark/jmx_test.go index 304276495..3537cb95c 100644 --- a/test/metric_value_benchmark/jmx_test.go +++ b/test/metric_value_benchmark/jmx_test.go @@ -63,7 +63,7 @@ func (t *JMXTestRunner) SetupBeforeAgentRun() error { "echo 'KAFKA_JMX_OPTS=\"-Dcom.sun.management.jmxremote.port=2020 -Dcom.sun.management.jmxremote.rmi.port=2021 -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\"'|cat - kafka_2.13-3.6.2/bin/kafka-run-class.sh > /tmp/kafka-jmx-config && mv /tmp/kafka-jmx-config kafka_2.13-3.6.2/bin/kafka-run-class.sh", "sudo chmod +x kafka_2.13-3.6.2/bin/kafka-run-class.sh", "kafka_2.13-3.6.2/bin/kafka-server-start.sh kafka_2.13-3.6.2/config/server.properties >/dev/null 2>&1 &", - "nohup java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=2030 -Dcom.sun.management.jmxremote.local.only=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=2031 -Djava.rmi.server.hostname=127.0.0.1 -jar jars/spring-boot-web-starter-tomcat.jar > /tmp/spring-boot-web-starter-tomcat-jar.txt &", + "nohup java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=2030 -Dcom.sun.management.jmxremote.local.only=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=2031 -Djava.rmi.server.hostname=127.0.0.1 --port=8888 -jar jars/spring-boot-web-starter-tomcat.jar > /tmp/spring-boot-web-starter-tomcat-jar.txt &", } err = common.RunCommands(startJMXCommands)