Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 84950 invoked from network); 9 Mar 2011 17:37:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 17:37:25 -0000 Received: (qmail 63261 invoked by uid 500); 9 Mar 2011 17:37:23 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 63231 invoked by uid 500); 9 Mar 2011 17:37:23 -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 63223 invoked by uid 99); 9 Mar 2011 17:37:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 17:37:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 17:37:18 +0000 Received: by qwh6 with SMTP id 6so698120qwh.31 for ; Wed, 09 Mar 2011 09:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=GmGMqw+ZLIEr7OENBy79DgrNRY9xC+d9+cmnxrr55Oo=; b=OcXaqg+YuPfMTYHJDGBrVXVJaR+GWYJOCj86TNb9Q29Yc/TOPiyyoJ53XpfzlJN5CX WEQwjZYBEY315kxjMYwNrcI9L+R2gi8ehaPt173sE0/EJEiVfo5iWOv6frdY9Ro9PhEZ Eg0ZQyJJrtia+zmFOlxswV6ulGg4CGnzucjyA= 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 :cc:content-type:content-transfer-encoding; b=ng5a+eIU3ulrbIpjxBXWlbSJUKNnROdgKU2zocZTJtilVglnuFd9ielJ9rhudhgNJQ TLEeejhw2jVc5FmJd9MNSKpkfxkPKnNvVXrMg++V8R8/TiJW0HSTtkxiOTmwelNVpDKF 8kjQoKJBKLlK7vACxQVZifDcdmxPS9UJYEGmA= Received: by 10.52.90.73 with SMTP id bu9mr2946964vdb.92.1299692216137; Wed, 09 Mar 2011 09:36:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.164.102 with HTTP; Wed, 9 Mar 2011 09:36:36 -0800 (PST) In-Reply-To: References: <4D713789.1000601@gmail.com> <346FD641-F375-4935-B5BF-64886ABAA8BA@thelastpickle.com> From: Jonathan Ellis Date: Wed, 9 Mar 2011 11:36:36 -0600 Message-ID: Subject: Re: Reducing memory footprint To: user@cassandra.apache.org Cc: Casey Deccio Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I edited Peter Schuller's reply last time this came up into a FAQ: http://wiki.apache.org/cassandra/FAQ#mmap On Wed, Mar 9, 2011 at 11:10 AM, Casey Deccio wrote: > On Sat, Mar 5, 2011 at 7:37 PM, aaron morton > wrote: >> >> There is some additional memory usage in the JVM beyond that Heap size, = in >> the permanent generation. 900mb sounds like too much for that, but you c= an >> check by connecting with JConsole and looking at the memory tab. You can >> also check the heap size there to see that it's under the value you've s= et. > > Thanks for the tip! > > From JConsole: > Heap memory usage: Current 46M; Max 902M > Non-Heap memory usage: Current 34M; Max 200MB > > Both of these seem reasonable and don't reach the (current) 2.1 GB reside= nt > usage I am seeing. > >> Check you are using standard disk access (in conf/cassandra.yaml) rather >> than memory mapped access. However the memory mapped memory is reported = as >> virtual memory, not resident. So I'm just mentioning it to be complete. > > At the moment, it's set to "auto", but it's a 64-bit machine, so I believ= e > it's using memory mapped.=A0 The virtual memory usage says that it is 54.= 6 GB. > >> If you think you've configured things correctly and the JVM is not >> behaving (which is unlikely) please include some information on the JVM = and >> OS versions and some hard numbers about what the process is using. > > Debian 6.0 using openjdk-6-jre-lib-6b18-1.8.3-2+squeeze1 > > Thanks for your help. > > Casey > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com