I see the below when I start the zookeeper in 160103
conf: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain
Looks like com.sun.management.jmxremote is true by default and can be accessed remotely but I don't see a port being set in any of the conf files. As per the zk documentation, com.sun.management.jmxremote.port=portNum needs to be set when we start the JVM, I see the rest of properties being set in the zkServer.sh but when tried to add the port, my ZK is not coming up.
any ideas on how to make it work?
We do not doc JMX monitoring for ZooKeeper as an option. Did you see it mentioned somewhere the JMX worked on ZooKeeper?
Stephen
Other than that setting you would also need to set the port/userid (and pass) within your JDK. If you are using native jdk then these changes need to be made on jmxremote* files. Which of course is the only recommended approach. You can also customize these files and appropriately set you jvm