In my cassandra-env.sh for 1.1.6, there is no setting regarding mx4j at all. I 
simply dropped the mx4j jar to the lib folder and enable jmx from 
cassandra-env.sh, I can connect to the default mx4j port 8081 with no problem. 
I guess without the mx4j setting, it uses default port. If youi need to connect 
using other port, you might have to add the settings mentioned by Michal, I 
didn't try it myself though. 

Thanks.
-Wei


________________________________
 From: Michal Michalski <mich...@opera.com>
To: user@cassandra.apache.org 
Sent: Monday, November 12, 2012 3:37 AM
Subject: Re: monitor cassandra 1.1.6 with MX4J
 
Hmm... It looks like it wasn't merged at some time (why?), because I can see 
that appropriate lines were present in a few branches. I didn't check if it 
works, but looking at git history tells me that you could try modifying 
cassandra-env.sh like this:

Add this somewhere & configure:

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

And then add this:

JVM_OPTS="$JVM_OPTS $MX4J_ADDRESS"
JVM_OPTS="$JVM_OPTS $MX4J_PORT"

somewhere in the end of the file where JVM_OPTS is appended.

Regards,
Michał

W dniu 12.11.2012 12:03, Francisco Trujillo Hacha pisze:
> I am trying to monitor a single Cassandra node using:
> 
> http://wiki.apache.org/cassandra/Operations#Monitoring_with_MX4J
> 
> But I can't find the variables indicated (url and port) in the
> cassandra-env.sh
> 
> Where coulde be?
> 

Reply via email to