From 3a353f779c2f6cd00a8867e0ca02accaf0c5543f Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Wed, 8 Dec 2010 01:00:56 +0000 Subject: [PATCH] add sample mx4j options to cassandra-env.sh patch by Ran Tavory; reviewed by jbellis for CASSANDRA-1832 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1043259 13f79535-47bb-0310-9956-ffa450edef68 --- conf/cassandra-env.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh index 2870fdb34d..34a01f5317 100644 --- a/conf/cassandra-env.sh +++ b/conf/cassandra-env.sh @@ -47,6 +47,12 @@ fi # JMX connections. JMX_PORT="8080" +# To use mx4j, an HTML interface for JMX, add mx4j-tools.jar to the lib/ directory. +# By default mx4j listens on 0.0.0.0:8081. Uncomment the following lines to control +# its listen address and port. +#MX4J_ADDRESS="-Dmx4jaddress=0.0.0.0" +#MX4J_PORT="-Dmx4jport=8081" + # Here we create the arguments that will get passed to the jvm when # starting cassandra. @@ -112,3 +118,5 @@ JVM_OPTS="$JVM_OPTS -Djava.net.preferIPv4Stack=true" 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 $MX4J_ADDRESS" +JVM_OPTS="$JVM_OPTS $MX4J_PORT"