Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 54363 invoked from network); 7 Sep 2010 17:51:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 17:51:35 -0000 Received: (qmail 49650 invoked by uid 500); 7 Sep 2010 17:51:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 49509 invoked by uid 500); 7 Sep 2010 17:51: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 49501 invoked by uid 99); 7 Sep 2010 17:51:32 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 17:51:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vineetdaniel@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 17:51:11 +0000 Received: by qyk9 with SMTP id 9so5612677qyk.10 for ; Tue, 07 Sep 2010 10:50:50 -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; bh=VFJ/1yrBUDiLPId3q4/LbB+LbZOF+Yxhk5n32EXveR8=; b=ZPPAWADnM5iUqS+xlPw41YQLWZCdoxrTQIl9iF9nluMmJ45x3fUf6BfjTv28OFy3KL HSnIvoSq+0KOSNAkr1CSj5x7oAuD9Bz/WZ7yRtDzJIu4/LjCvMSc+ZKlt/UMmVos1hXY vae3FYov35+XYqUKt33JSVIuK30DPmBL2CsDo= 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; b=iG7WdxCwL4SpOd6aNb43wPaFUswcmupne+aw3rjC38N0wFIQQyoXKJyljeHnucZl2z ReSKhZnNkkf7wpuQ8kllC0avWbw2xD2NbK5DA9XESrtEkil5k2DM7iCvrdqzej6FkSiy Ncj94d+BCAdSg2PbKtdQ7a6ZlIjolXv7lw7Qo= Received: by 10.229.219.206 with SMTP id hv14mr2243005qcb.261.1283881850290; Tue, 07 Sep 2010 10:50:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.236.207 with HTTP; Tue, 7 Sep 2010 10:50:30 -0700 (PDT) In-Reply-To: References: From: vineet daniel Date: Tue, 7 Sep 2010 23:20:30 +0530 Message-ID: Subject: Re: Capping the memory limit in cassandra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016361e7f329ec4af048faf09eb X-Virus-Checked: Checked by ClamAV on apache.org --0016361e7f329ec4af048faf09eb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi When is this happening I mean is Cassandra idle or application is inserting/reading values from it .....are you running any map/reduce job at that time. Regards Vineet Daniel Cell : +918106217121 Websites : Blog | Linkedin | Twitter On Tue, Sep 7, 2010 at 11:08 PM, Dathan Pattishall wrot= e: > 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 PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > > > 6992 root 18 0 32.8g 29g 21g S 19 93.9 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? > > --0016361e7f329ec4af048faf09eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi

When is this happening I mean is Cassandra idle or application i= s inserting/reading values from it .....are you running any map/reduce job = at that time.

Regards

= Cell=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : +918106217121<= /span>
Websites :
Blog =C2=A0 |= =C2=A0=C2=A0 Linkedin=C2=A0 |=C2=A0 Twitter



On Tue, Sep 7, 2010 at 11:08 PM, Dathan = Pattishall <dath= anvp@gmail.com> wrote:
For this java process

/opt/java/bin/java -ea -Xms1G -Xmx7G -X= X:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:Su= rvivorRatio=3D8 -XX:MaxTenuringThreshold=3D1 -XX:+HeapDumpOnOutOfMemoryErro= r -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/cas= sandra/bin/../build/classes:/opt/cassandra/bin/../lib/antlr-3.1.3.jar:/opt/= cassandra/bin/../lib/apache-cassandra-0.6.4.jar:/opt/cassandra/bin/../lib/c= lhm-production.jar:/opt/cassandra/bin/../lib/commons-cli-1.1.jar:/opt/cassa= ndra/bin/../lib/commons-codec-1.2.jar:/opt/cassandra/bin/../lib/commons-col= lections-3.2.1.jar:/opt/cassandra/bin/../lib/commons-lang-2.4.jar:/opt/cass= andra/bin/../lib/google-collections-1.0.jar:/opt/cassandra/bin/../lib/hadoo= p-core-0.20.1.jar:/opt/cassandra/bin/../lib/high-scale-lib.jar:/opt/cassand= ra/bin/../lib/ivy-2.1.0.jar:/opt/cassandra/bin/../lib/jackson-core-asl-1.4.= 0.jar:/opt/cassandra/bin/../lib/jackson-mapper-asl-1.4.0.jar:/opt/cassandra= /bin/../lib/jline-0.9.94.jar:/opt/cassandra/bin/../lib/json-simple-1.1.jar:= /opt/cassandra/bin/../lib/libthrift-r917130.jar:/opt/cassandra/bin/../lib/l= og4j-1.2.14.jar:/opt/cassandra/bin/../lib/slf4j-api-1.5.8.jar:/opt/cassandr= a/bin/../lib/slf4j-log4j12-1.5.8.jar org.apache.cassandra.thrift.CassandraD= aemon

I set the max memory size to 7G yet Cassandra is taking

PID USER =C2=A0 =C2=A0 =C2=A0PR =C2=A0NI =C2=A0VIRT =C2=A0= RES =C2=A0SHR S %CPU=20 %MEM =C2=A0 =C2=A0TIME+ =C2=A0COMMAND =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0
6992 root =C2=A0 =C2=A0 =C2=A018 =C2=A0 0 32.8g =C2=A029g =C2=A021g S= =C2=A0 19 93.9 =C2=A0 5685:14=20 /opt/java/bin/java -ea -Xms1G -Xmx7G -XX:+UseParNewGC=20 -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled=20 -XX:SurvivorRatio=3D8 -XX:M

why is that, and how do I = cap the memory used for cassandra? Is this a bug or a mistake on my part?

--0016361e7f329ec4af048faf09eb--