Add example jmx auth file location Patch by Peter Halliday, reviewed by brandonwilliams for CASSANDRA-6286
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/886ac6ad Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/886ac6ad Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/886ac6ad Branch: refs/heads/trunk Commit: 886ac6adc08baa1b9c2d92b9d1df4e92fbca244a Parents: 8814623 Author: Brandon Williams <[email protected]> Authored: Fri Jan 17 11:06:13 2014 -0600 Committer: Brandon Williams <[email protected]> Committed: Fri Jan 17 11:07:22 2014 -0600 ---------------------------------------------------------------------- conf/cassandra-env.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/886ac6ad/conf/cassandra-env.sh ---------------------------------------------------------------------- diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh index 95acc4e..78a39f4 100644 --- a/conf/cassandra-env.sh +++ b/conf/cassandra-env.sh @@ -236,21 +236,22 @@ fi # uncomment to have Cassandra JVM listen for remote debuggers/profilers on port 1414 # JVM_OPTS="$JVM_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1414" -# Prefer binding to IPv4 network intefaces (when net.ipv6.bindv6only=1). See +# Prefer binding to IPv4 network intefaces (when net.ipv6.bindv6only=1). See # http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342561 (short version: # comment out this entry to enable IPv6 support). JVM_OPTS="$JVM_OPTS -Djava.net.preferIPv4Stack=true" # jmx: metrics and administration interface -# +# # add this if you're having trouble connecting: # JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=<public name>" -# -# see +# +# see # https://blogs.oracle.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole # for more on configuring JMX through firewalls, etc. (Short version: # get it working with no firewall first.) -JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT" -JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl=false" -JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false" +JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT" +JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.ssl=false" +JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false" +#JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password" JVM_OPTS="$JVM_OPTS $JVM_EXTRA_OPTS"
