incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeniy Ryabitskiy <evgeniy.ryabits...@wikimart.ru>
Subject Setting java heap size for Cassandra process
Date Tue, 20 Sep 2011 13:12:53 GMT
Hi,
I am running Cassandra over Linux VMs, each VM is: 2GB RAM, 4 core CPU.
Using RPM distribution. I have set -Xmx to 512M in cassandra-env.sh

After day of running I see that Cassandra process is utilizing over 80% of
memory that is 3 times more then 512M.
In result after 2 days of running, Cassandra process is killed by OS
(without OutOfMemoryException).

Here is *ps aux* output. Could you help to understand this behavior?


USER       PID %CPU %MEM    VSZ         RSS       TTY   STAT    START   TIME
COMMAND
103          1067  2.5      * 80.7    6417932*    *1693508*    ?
SLl          01:06      24:30 * /usr/java/jre1.6.0_26/bin/java* -ea
-javaagent:/usr/share/cassandra//lib/jamm-0.2.2.jar -XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42 *-Xms512M -Xmx512M
-Xmn128M*-XX:+HeapDumpOnOutOfMemoryError -Xss128k -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -Djava.net.preferIPv4Stack=true
-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
-Dcassandra-pidfile=/var/run/cassandra/cassandra.pid -cp
/etc/cassandra/conf:/usr/share/cassandra/lib/antlr-3.2.jar:/usr/share/cassandra/lib/apache-cassandra-0.8.5.jar:/usr/share/cassandra/lib/apache-cassandra-thrift-0.8.5.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-collections-3.2.1.jar:/usr/share/cassandra/lib/commons-lang-2.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.1.jar:/usr/share/cassandra/lib/guava-r08.jar:/usr/share/cassandra/lib/high-scale-lib-1.1.2.jar:/usr/share/cassandra/lib/jackson-core-asl-1.4.0.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.4.0.jar:/usr/share/cassandra/lib/jamm-0.2.2.jar:/usr/share/cassandra/lib/jline-0.9.94.jar:/usr/share/cassandra/lib/jna.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.6.jar:/usr/share/cassandra/lib/log4j-1.2.16.jar:/usr/share/cassandra/lib/servlet-api-2.5-20081211.jar:/usr/share/cassandra/lib/slf4j-api-1.6.1.jar:/usr/share/cassandra/lib/slf4j-log4j12-1.6.1.jar:/usr/share/cassandra/lib/snakeyaml-1.6.jar
org.apache.cassandra.thrift.CassandraDaemon


Evgeny.

Mime
View raw message