cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mish...@apache.org
Subject [2/3] git commit: Add in forgotten MX4J variables to cassandra-env.sh
Date Sun, 16 Mar 2014 18:37:33 GMT
Add in forgotten MX4J variables to cassandra-env.sh

patch by Lewis John McGibbney; reviewed by Mikhail Stepura for CASSANDRA-6518


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4bed978a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4bed978a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4bed978a

Branch: refs/heads/trunk
Commit: 4bed978ae41c8e6b8bef8eb2896b06b9758e6c9d
Parents: 22b2716
Author: Lewis John McGibbney <lewis.mcgibbney@gmail.com>
Authored: Sun Mar 16 11:34:36 2014 -0700
Committer: Mikhail Stepura <mishail@apache.org>
Committed: Sun Mar 16 11:34:36 2014 -0700

----------------------------------------------------------------------
 conf/cassandra-env.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4bed978a/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index 6b26099..e46403e 100644
--- a/conf/cassandra-env.sh
+++ b/conf/cassandra-env.sh
@@ -253,8 +253,19 @@ JVM_OPTS="$JVM_OPTS -Djava.net.preferIPv4Stack=true"
 # 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.)
+
+# To use mx4j, an HTML interface for JMX, add mx4j-tools.jar to the lib/
+# directory.
+# See http://wiki.apache.org/cassandra/Operations#Monitoring_with_MX4J
+# By default mx4j listens on 0.0.0.0:8081. Uncomment the following lines
+# to control its listen address and port.
+#MX4J_ADDRESS="-Dmx4jaddress=127.0.0.1"
+#MX4J_PORT="-Dmx4jport=8081"
+
 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 $MX4J_ADDRESS"
+JVM_OPTS="$JVM_OPTS $MX4J_PORT"
 JVM_OPTS="$JVM_OPTS $JVM_EXTRA_OPTS"


Mime
View raw message