Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 64883 invoked from network); 7 Sep 2010 18:16:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 18:16:35 -0000 Received: (qmail 97834 invoked by uid 500); 7 Sep 2010 18:16:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97790 invoked by uid 500); 7 Sep 2010 18:16:33 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 97782 invoked by uid 99); 7 Sep 2010 18:16:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 18:16:32 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 18:16:28 +0000 Received: by vws10 with SMTP id 10so4842684vws.31 for ; Tue, 07 Sep 2010 11:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=5OTyT5lD4o/jtLxKeYED2Figua+SX+cEj9AcZcxqUVo=; b=YCirFrW2zh5Tfb8Xmt8gjtoH2Dgpy0mBAmoiRIin5SfAytiU/AQx845d1fpfR/4exT 9Xv36vgT9AeYsKddmz5SIj/uvPHmqHmuOfgWS33ixqutcpbkyOg3H4yWCAwkOEM7zD1Y Fb9AQgI3d7U2CUUqeYEVUc4qqdse3RgQGSTOw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=aHitcnm6Khs2EErzNOpRYz5v8fOayNeQEp1bbj+1G7cfMPhmzNw+rj0i0xHtLMqwMS VA+zWBHSF7Bc4ArrFsTHgoHV4NpqddJNKi4A9wFoChaxqOqWAB+dRByF3HsFld75oN0/ 2E/T6L4IxBsTq2Weu9er6xMqi+4llUFgw6Zh8= Received: by 10.220.126.166 with SMTP id c38mr33771vcs.192.1283883361313; Tue, 07 Sep 2010 11:16:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.182.193 with HTTP; Tue, 7 Sep 2010 11:15:41 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Tue, 7 Sep 2010 13:15:41 -0500 Message-ID: Subject: Re: Capping the memory limit in cassandra To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable see http://www.mail-archive.com/user@cassandra.apache.org/msg03583.html On Tue, Sep 7, 2010 at 12:38 PM, Dathan Pattishall wro= te: > For this java process > > /opt/java/bin/java -ea -Xms1G -Xmx7G -XX:+UseParNewGC > -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio= =3D8 > -XX:MaxTenuringThreshold=3D1 -XX:+HeapDumpOnOutOfMemoryError > -Dcom.sun.management.jmxremote.port=3D8181 > -Dcom.sun.management.jmxremote.ssl=3Dfalse > -Dcom.sun.management.jmxremote.authenticate=3Dfalse > -Dstorage-config=3D/opt/cassandra/bin/../conf -cp > /opt/cassandra/bin/../conf:/opt/cassandra/bin/../build/classes:/opt/cassa= ndra/bin/../lib/antlr-3.1.3.jar:/opt/cassandra/bin/../lib/apache-cassandra-= 0.6.4.jar:/opt/cassandra/bin/../lib/clhm-production.jar:/opt/cassandra/bin/= ../lib/commons-cli-1.1.jar:/opt/cassandra/bin/../lib/commons-codec-1.2.jar:= /opt/cassandra/bin/../lib/commons-collections-3.2.1.jar:/opt/cassandra/bin/= ../lib/commons-lang-2.4.jar:/opt/cassandra/bin/../lib/google-collections-1.= 0.jar:/opt/cassandra/bin/../lib/hadoop-core-0.20.1.jar:/opt/cassandra/bin/.= ./lib/high-scale-lib.jar:/opt/cassandra/bin/../lib/ivy-2.1.0.jar:/opt/cassa= ndra/bin/../lib/jackson-core-asl-1.4.0.jar:/opt/cassandra/bin/../lib/jackso= n-mapper-asl-1.4.0.jar:/opt/cassandra/bin/../lib/jline-0.9.94.jar:/opt/cass= andra/bin/../lib/json-simple-1.1.jar:/opt/cassandra/bin/../lib/libthrift-r9= 17130.jar:/opt/cassandra/bin/../lib/log4j-1.2.14.jar:/opt/cassandra/bin/../= lib/slf4j-api-1.5.8.jar:/opt/cassandra/bin/../lib/slf4j-log4j12-1.5.8.jar > org.apache.cassandra.thrift.CassandraDaemon > > I set the max memory size to 7G yet Cassandra is taking > > > PID USER =A0 =A0 =A0PR =A0NI =A0VIRT =A0RES =A0SHR S %CPU %MEM =A0 =A0TIM= E+ =A0COMMAND > > > > 6992 root =A0 =A0 =A018 =A0 0 32.8g =A029g =A021g S =A0 19 93.9 =A0 5685:= 14 > /opt/java/bin/java -ea -Xms1G -Xmx7G -XX:+UseParNewGC > -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio= =3D8 > -XX:M > > why is that, and how do I cap the memory used for cassandra? Is this a bu= g > or a mistake on my part? > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com