incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: Reduce Cassandra GC
Date Fri, 21 Jun 2013 00:53:29 GMT
Can you paste the output of cfstats and cfhistograms?

Also try and get histo at 2 diff points 1) when it looks good 2) when it
gets slow

http://docs.oracle.com/javase/6/docs/technotes/tools/share/jmap.html

Look for jmap -histo

On Thu, Jun 20, 2013 at 12:27 AM, Joel Samuelsson <samuelsson.joel@gmail.com
> wrote:

> 12.3 GB data per node (only one Ĺ„ode).
> 16GB RAM.
> In virtual environment with the CPU specified as "8 cores", average CPU
> use is close to 0% (basically no load, around 12 requests / sec, mostly
> from OpsCenter).
> Average memory use is 4GB. Around 1GB heap used by Cassandra (out of 4GB).
>
>
> 2013/6/19 Mohit Anchlia <mohitanchlia@gmail.com>
>
>> How much data do you have per node?
>> How much RAM per node?
>> How much CPU per node?
>> What is the avg CPU and memory usage?
>>
>>  On Wed, Jun 19, 2013 at 12:16 AM, Joel Samuelsson <
>> samuelsson.joel@gmail.com> wrote:
>>
>>>  My Cassandra ps info:
>>>
>>> root     26791     1  0 07:14 ?        00:00:00 /usr/bin/jsvc -user
>>> cassandra -home /opt/java/64/jre1.6.0_32/bin/../ -pidfile
>>> /var/run/cassandra.pid -errfile &1 -outfile /var/log/cassandra/output.log
>>> -cp
>>> /usr/share/cassandra/lib/antlr-3.2.jar:/usr/share/cassandra/lib/avro-1.4.0-fixes.jar:/usr/share/cassandra/lib/avro-1.4.0-sources-fixes.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.2.jar:/usr/share/cassandra/lib/commons-lang-2.6.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.3.jar:/usr/share/cassandra/lib/guava-13.0.1.jar:/usr/share/cassandra/lib/high-scale-lib-1.1.2.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.2.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.2.jar:/usr/share/cassandra/lib/jamm-0.2.5.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jline-1.0.jar:/usr/share/cassandra/lib/jna.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.7.0.jar:/usr/share/cassandra/lib/log4j-1.2.16.jar:/usr/share/cassandra/lib/lz4-1.1.0.jar:/usr/share/cassandra/lib/metrics-core-2.0.3.jar:/usr/share/cassandra/lib/netty-3.5.9.Final.jar:/usr/share/cassandra/lib/servlet-api-2.5-20081211.jar:/usr/share/cassandra/lib/slf4j-api-1.7.2.jar:/usr/share/cassandra/lib/slf4j-log4j12-1.7.2.jar:/usr/share/cassandra/lib/snakeyaml-1.6.jar:/usr/share/cassandra/lib/snappy-java-1.0.4.1.jar:/usr/share/cassandra/lib/snaptree-0.1.jar:/usr/share/cassandra/apache-cassandra-1.2.5.jar:/usr/share/cassandra/apache-cassandra-thrift-1.2.5.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/stress.jar:/usr/share/java/jna.jar:/etc/cassandra:/usr/share/java/commons-daemon.jar
>>> -Dlog4j.configuration=log4j-server.properties
>>> -Dlog4j.defaultInitOverride=true
>>> -XX:HeapDumpPath=/var/lib/cassandra/java_1371626058.hprof
>>> -XX:ErrorFile=/var/lib/cassandra/hs_err_1371626058.log -ea
>>> -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
>>> -XX:ThreadPriorityPolicy=42 -Xms4004M -Xmx4004M -Xmn800M
>>> -XX:+HeapDumpOnOutOfMemoryError -Xss180k -XX:+UseParNewGC
>>> -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8
>>> -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
>>> -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB
>>> -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.port=7199
>>> -Dcom.sun.management.jmxremote.ssl=false
>>> -Dcom.sun.management.jmxremote.authenticate=false
>>> org.apache.cassandra.service.CassandraDaemon
>>> 103      26792 26791 99 07:14 ?        854015-22:02:22 /usr/bin/jsvc
>>> -user cassandra -home /opt/java/64/jre1.6.0_32/bin/../ -pidfile
>>> /var/run/cassandra.pid -errfile &1 -outfile /var/log/cassandra/output.log
>>> -cp
>>> /usr/share/cassandra/lib/antlr-3.2.jar:/usr/share/cassandra/lib/avro-1.4.0-fixes.jar:/usr/share/cassandra/lib/avro-1.4.0-sources-fixes.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.2.jar:/usr/share/cassandra/lib/commons-lang-2.6.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.3.jar:/usr/share/cassandra/lib/guava-13.0.1.jar:/usr/share/cassandra/lib/high-scale-lib-1.1.2.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.2.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.2.jar:/usr/share/cassandra/lib/jamm-0.2.5.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jline-1.0.jar:/usr/share/cassandra/lib/jna.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.7.0.jar:/usr/share/cassandra/lib/log4j-1.2.16.jar:/usr/share/cassandra/lib/lz4-1.1.0.jar:/usr/share/cassandra/lib/metrics-core-2.0.3.jar:/usr/share/cassandra/lib/netty-3.5.9.Final.jar:/usr/share/cassandra/lib/servlet-api-2.5-20081211.jar:/usr/share/cassandra/lib/slf4j-api-1.7.2.jar:/usr/share/cassandra/lib/slf4j-log4j12-1.7.2.jar:/usr/share/cassandra/lib/snakeyaml-1.6.jar:/usr/share/cassandra/lib/snappy-java-1.0.4.1.jar:/usr/share/cassandra/lib/snaptree-0.1.jar:/usr/share/cassandra/apache-cassandra-1.2.5.jar:/usr/share/cassandra/apache-cassandra-thrift-1.2.5.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/stress.jar:/usr/share/java/jna.jar:/etc/cassandra:/usr/share/java/commons-daemon.jar
>>> -Dlog4j.configuration=log4j-server.properties
>>> -Dlog4j.defaultInitOverride=true
>>> -XX:HeapDumpPath=/var/lib/cassandra/java_1371626058.hprof
>>> -XX:ErrorFile=/var/lib/cassandra/hs_err_1371626058.log -ea
>>> -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
>>> -XX:ThreadPriorityPolicy=42 -Xms4004M -Xmx4004M -Xmn800M
>>> -XX:+HeapDumpOnOutOfMemoryError -Xss180k -XX:+UseParNewGC
>>> -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8
>>> -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
>>> -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB
>>> -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.port=7199
>>> -Dcom.sun.management.jmxremote.ssl=false
>>> -Dcom.sun.management.jmxremote.authenticate=false
>>> org.apache.cassandra.service.CassandraDaemon
>>>
>>> Is it normal to have two processes like this?
>>>
>>>
>>
>

Mime
View raw message