anchor.diff:  #
   # add this if you're having trouble connecting:
   # JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<public name>"
  -JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=`uname -n`"
   #
   # see
   # https://blogs.oracle.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
  
positive.code: 
    # turn on JMX authentication. See below for further options
    JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=true"
    JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password"
  
    # jmx ssl options
    #JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl=true"
  
negative.code: # JMX connections.
  # For security reasons, you should not expose this port to the internet.  Firewall it if needed.
  JMX_PORT="7199"
  
  if [ "$LOCAL_JMX" = "yes" ]; then
    JVM_OPTS="$JVM_OPTS -Dcassandra.jmx.local.port=$JMX_PORT"
    JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
  