Database Reference
In-Depth Information
# Specifies the default port over which
Cassandra will be available for
# JMX connections.
JMX_PORT="7199"
b.
With Windows, modify
$CASSANDRA_HOME/bin/cassandra.bat as:
REM ***** JAVA options *****
set JAVA_OPTS=-ea^
-javaagent:"%CASSANDRA_HOME%\lib\jamm-0.2.5.jar"^
-Xms1G^
-Xmx1G^
-XX:+HeapDumpOnOutOfMemoryError^
-XX:+UseParNewGC^
-XX:+UseConcMarkSweepGC^
-XX:+CMSParallelRemarkEnabled^
-XX:SurvivorRatio=8^
-XX:MaxTenuringThreshold=1^
-XX:CMSInitiatingOccupancyFraction=75^
-XX:+UseCMSInitiatingOccupancyOnly^
-Dcom.sun.management.jmxremote.port=7199^
-Dcom.sun.management.jmxremote.ssl=false^
-Dcom.sun.management.jmxremote.authenticate=false^
-Dlog4j.configuration=log4j-server.properties^
-Dlog4j.defaultInitOverride=true
7.
Let's start each node one by one and check ring status as:
$CASSANDRA_HOME/apache-cassandra-1.2.4/bin/no-
detool -h 127.0.0.02 -p 8081 ring.
Figure 1-9 shows ring status while connecting to one Cassandra node using jmx.
Since Cassandra's architecture is peer-to-peer, checking ring status on any node will
yield the same result.
 
Search WWH ::




Custom Search