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
This commit is contained in:
Jonathan Ellis 2010-12-08 01:00:56 +00:00
parent 8df1e7887a
commit 3a353f779c
1 changed files with 8 additions and 0 deletions

View File

@ -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"