You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/11/30 18:01:40 UTC

[GitHub] [kafka] reta commented on a diff in pull request #12898: optimize: -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT

reta commented on code in PR #12898:
URL: https://github.com/apache/kafka/pull/12898#discussion_r1036289039


##########
bin/kafka-run-class.sh:
##########
@@ -212,7 +212,7 @@ fi
 
 # JMX port to use
 if [  $JMX_PORT ]; then
-  KAFKA_JMX_OPTS="$KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "
+  KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT $KAFKA_JMX_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT "

Review Comment:
   @C0urante it seems like there is not good answer to that, but for simple properties (like `-D`), the "winner" is the right-most value in the argument list on most JDKs (HotSpot, OpenJ9).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org