incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: 91% of memory usage right after startup when jna enabled
Date Sat, 19 Feb 2011 14:44:25 GMT
conf/cassandra-env.sh, reduce the heap size

On Sat, Feb 19, 2011 at 8:37 AM, ruslan usifov <ruslan.usifov@gmail.com> wrote:
> Hello
>
> I experiment with cassandra on vmvare. My work machine have 512M of memory
> if have enable jna for cassandra 0.7.2, and right after startup on clear
> enviroment cassandra took more then 90% of memory:
>
> root@cassandra1:/usr/local/apache-cassandra-0.7.2/bin# ps uax
>
> root      2404 10.5 91.7 695580 463360 pts/1   SLl  17:10   0:02
> /usr/local/jdk1.6.0_23/bin/java -ea -XX:+UseThreadPriorities
> -XX:ThreadPriorityPolicy=42 -Xms246M -Xmx246M -Xmn61M
> -XX:+HeapDumpOnOutOfMemoryError -Xss128k -XX:+UseParNewGC
> -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8
> -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
> -XX:+UseCMSInitiatingOccupancyOnly -XX:+PrintGCApplicationStoppedTime
> -Xloggc:/var/log/cassandra/gc.log -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote.port=8080
> -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.pid
> -cp
> /usr/local/apache-cassandra-0.7.2//bin/../conf:/usr/local/apache-cassandra-0.7.2//bin/../build/classes:/usr/local/apache-cassandra-0.7.2//bin/../lib/antlr-3.1.3.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/apache-cassandra-0.7.2.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/avro-1.4.0-fixes.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/avro-1.4.0-sources-fixes.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/commons-cli-1.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/commons-codec-1.2.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/commons-collections-3.2.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/commons-lang-2.4.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/concurrentlinkedhashmap-lru-1.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/guava-r05.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/high-scale-lib.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jackson-core-asl-1.4.0.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jackson-mapper-asl-1.4.0.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jetty-6.1.21.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jetty-util-6.1.21.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jline-0.9.94.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jna.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/json-simple-1.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/jug-2.0.0.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/libthrift-0.5.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/log4j-1.2.16.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/platform.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/servlet-api-2.5-20081211.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/slf4j-api-1.6.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/apache-cassandra-0.7.2//bin/../lib/snakeyaml-1.6.jar
> org.apache.cassandra.thrift.CassandraDaemon
>
>
> So if i launch nodetool on the same machine - system goes to swap. As i
> undestend with jna cassandra mlock memory and doesn't grows much then this
> 90%. But how cant i reduce this for example to 80% (for example mysql manual
> recommend to allocate 60-80% memory for it)
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message