I am trying to use JMX nodetool distantly. I cannot configure JMX to listen on the public network interface whereas Cassandra does listen on public interface.
Note it is not Cassandra connection, but JMX connection. Cassandra is available on public interface port 9042.
netstat -planet | grep 7199
gives
127.0.0.1:7199
and nodetool -h consistently fails.
With ./cassendra-env.sh, I set LOCAL_JMX=no
-Dcom.sun.management.jmxremote.host=<public_ip>
-Djava.rmi.server.hostname=<public_ip>
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=false
I tried, without success, to put the parameters also in jvm11-server.options.
JMX keeps binding to 127.0.0.1.
Do I miss something?
(Tryng to use JMX distantly)
Running Cassandra 4.1.4 with Java 11.