Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0328E8F5F for ; Tue, 16 Aug 2011 21:35:33 +0000 (UTC) Received: (qmail 26144 invoked by uid 500); 16 Aug 2011 21:35:30 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 26028 invoked by uid 500); 16 Aug 2011 21:35:29 -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 26020 invoked by uid 99); 16 Aug 2011 21:35:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 21:35:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a82.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 21:35:22 +0000 Received: from homiemail-a82.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a82.g.dreamhost.com (Postfix) with ESMTP id 29504282060 for ; Tue, 16 Aug 2011 14:34:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=A13JzKp5gT 3k9bICFSwCPqCYRTBWAwczl6iHQRBX6H+Kf9MfQakkntdv73nxRtt9+dczbURJtU yf7DnP6oYe2bmV524F+aGjzbus9eEWw2Sd7j5qEt7VmPtnztILOKt//nmnyYENrT xy4MtL31pOkH6zgzIFSnfVWK5BXVXvTv8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=QT+SnpG7UtJTm8DS fpxLmyGsxhU=; b=o6b70DDtwZAhUrbidrNVgaLVTFkwwDo4iiYPxcgMnAsKHTV0 oanJiW8vGuDmQHMDntCZEnDltv0hr8JVPWVBj3/4Xv+uIyzOIi1UADHBEx+h9M0K 1Lt+VaylvnHtA4UbutYwl28VK+ALh77r7LO4/IKRdYixhlQGOWxC289wJVg= Received: from 202-126-206-189.vectorcommunications.net.nz (unknown [202.126.206.189]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a82.g.dreamhost.com (Postfix) with ESMTPSA id A776D28205F for ; Tue, 16 Aug 2011 14:34:55 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/alternative; boundary="Apple-Mail=_59498EC5-476F-492B-910B-C68D35606EBC" Subject: Re: Max heap not sticking? Date: Wed, 17 Aug 2011 09:34:51 +1200 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_59498EC5-476F-492B-910B-C68D35606EBC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Ian did you sort this out ?=20 What values do you see passed in when you run ps aux | grep cassandra ?=20= Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 16/08/2011, at 1:08 PM, Ian Danforth wrote: > All, >=20 > When I connect to a node through jconsole it's telling me that my max = heap is only 1.7gb. (eg http://screencast.com/t/7DP8ovdUv) However I = believe I have properly specified that it should be 4GB in = cassandra-env.sh. Total memory is 7.5GB >=20 > I see greatly increased GC activity as the heap approaches 1.7GB.=20 >=20 > Can anyone suggest why the heap might not use all the memory as = specified?=20 >=20 > Ian > =20 >=20 > =46rom cassandra-env.sh >=20 > MAX_HEAP_SIZE=3D"4096M" > HEAP_NEWSIZE=3D"400M" >=20 > JVM_OPTS=3D"$JVM_OPTS -Xms${MAX_HEAP_SIZE}" > JVM_OPTS=3D"$JVM_OPTS -Xmx${MAX_HEAP_SIZE}" > JVM_OPTS=3D"$JVM_OPTS -Xmn${HEAP_NEWSIZE}" >=20 --Apple-Mail=_59498EC5-476F-492B-910B-C68D35606EBC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Ian = did you sort this out ? 

What values do you see = passed in when you run ps aux | grep cassandra = ? 

Cheers

http://www.thelastpickle.com

On 16/08/2011, at 1:08 PM, Ian Danforth wrote:

All,

 When I connect to a node = through jconsole it's telling me that my max heap is only 1.7gb. = (eg http://screencast.com/t/7DP8ovd= Uv) However I believe I have properly specified that it should be = 4GB in cassandra-env.sh. Total memory is 7.5GB

 I see greatly increased GC activity as the = heap approaches 1.7GB. 

Can anyone suggest = why the heap might not use all the memory as = specified? 

Ian
 

=46rom = cassandra-env.sh

MAX_HEAP_SIZE=3D"4096M"
HEAP_NEWSIZE=3D"400M"

JVM_OPTS=3D= "$JVM_OPTS -Xms${MAX_HEAP_SIZE}"
JVM_OPTS=3D"$JVM_OPTS = -Xmx${MAX_HEAP_SIZE}"
JVM_OPTS=3D"$JVM_OPTS = -Xmn${HEAP_NEWSIZE}"


= --Apple-Mail=_59498EC5-476F-492B-910B-C68D35606EBC--