Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 89754 invoked from network); 9 Mar 2011 17:10:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 17:10:43 -0000 Received: (qmail 90227 invoked by uid 500); 9 Mar 2011 17:10:40 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 90189 invoked by uid 500); 9 Mar 2011 17:10:40 -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 90181 invoked by uid 99); 9 Mar 2011 17:10:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 17:10:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 17:10:35 +0000 Received: by qyk7 with SMTP id 7so616178qyk.10 for ; Wed, 09 Mar 2011 09:10:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.119.134 with SMTP id z6mr1816216qcq.63.1299690614290; Wed, 09 Mar 2011 09:10:14 -0800 (PST) Received: by 10.229.74.16 with HTTP; Wed, 9 Mar 2011 09:10:14 -0800 (PST) In-Reply-To: <346FD641-F375-4935-B5BF-64886ABAA8BA@thelastpickle.com> References: <4D713789.1000601@gmail.com> <346FD641-F375-4935-B5BF-64886ABAA8BA@thelastpickle.com> Date: Wed, 9 Mar 2011 09:10:14 -0800 Message-ID: Subject: Re: Reducing memory footprint From: Casey Deccio To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000e0cd5c94e61fe8c049e0fcdea --000e0cd5c94e61fe8c049e0fcdea Content-Type: text/plain; charset=ISO-8859-1 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 can > 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 set. > > 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 resident 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 believe it's using memory mapped. 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 --000e0cd5c94e61fe8c049e0fcdea Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Mar 5, 2011 at 7:37 PM, aaron morton <aaron@thelastpickle.c= om> wrote:
There is some additional memory usage= in the JVM beyond that Heap size, in the permanent generation. 900mb sound= s like too much for that, but you can check by connecting with JConsole and= looking at the memory tab. You can also check the heap size there to see t= hat it's under the value you've set.=A0


Thanks for the tip!

From JCons= ole:
Heap memory usage: Current 46M; Max 902M
Non-Heap memory usage: = Current 34M; Max 200MB

Both of these seem reasonable and don't r= each the (current) 2.1 GB resident usage I am seeing.

Check you are using s= tandard disk access (in conf/cassandra.yaml) rather than memory mapped acce= ss. However the memory mapped memory is reported as virtual memory, not res= ident. So I'm just mentioning it to be complete.


At the moment, it's set to &= quot;auto", but it's a 64-bit machine, so I believe it's using= memory mapped.=A0 The virtual memory usage says that it is 54.6 GB.

If you think you've conf= igured things correctly and the JVM is not behaving (which is unlikely) ple= ase include some information on the JVM and OS versions and some hard numbe= rs about what the process is using.


Debian 6.0 using openjdk-6-jre-l= ib-6b18-1.8.3-2+squeeze1

Thanks for your help.

Casey
--000e0cd5c94e61fe8c049e0fcdea--