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 2BB3A17939 for ; Wed, 5 Nov 2014 20:11:05 +0000 (UTC) Received: (qmail 21625 invoked by uid 500); 5 Nov 2014 20:11:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21579 invoked by uid 500); 5 Nov 2014 20:11:02 -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 21569 invoked by uid 99); 5 Nov 2014 20:11:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 20:11:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcoli@eventbrite.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vc0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 20:10:35 +0000 Received: by mail-vc0-f180.google.com with SMTP id hy10so810296vcb.39 for ; Wed, 05 Nov 2014 12:10:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=F2pUqPRHEW9FVaiIeSV9foN+i9BhN58OvRb2ymH0A+g=; b=G8eMwjAJmHhPXJ4VJxsjT+P7Hba/2QslCOejQsBKjrffZxwX/5HfIgLjQccDJxV/C8 jggikcGIXMhvTZivD5OatpJByO5Q1Yylk0ANkJZIAYEKd8tSXvNeoPZ/BU87pUeVCa64 vqObVOCMbv7Xfe47zjhs74SvUjmkpMKC2J8QD/nqTR/pw1sqnUOQW8acnep/zaFSlsxN JnRN0HLwjNea6SnaX+RkDBSn/reACF7mpOW+aQvoCfvDVI8B80tu/RCXm+ZERkRoZOs6 RU9nIeq84DZOUS59FO7yXDcxS28y8WKTxYBeJf6l2TSh3kfWrnu2mDi27n/aKAESi2/l fjSA== X-Gm-Message-State: ALoCoQmCqedkaYlcBaEklex/xDGFezvqnblMhwEAUMyGqqrvyWkL4pHWX8h29DN0StMlxav4n5C1 MIME-Version: 1.0 X-Received: by 10.221.5.65 with SMTP id of1mr36385975vcb.6.1415218234531; Wed, 05 Nov 2014 12:10:34 -0800 (PST) Received: by 10.31.58.144 with HTTP; Wed, 5 Nov 2014 12:10:34 -0800 (PST) In-Reply-To: References: Date: Wed, 5 Nov 2014 12:10:34 -0800 Message-ID: Subject: Re: Cassandra heap pre-1.1 From: Robert Coli To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=089e013cb9be263c0e0507222cdd X-Virus-Checked: Checked by ClamAV on apache.org --089e013cb9be263c0e0507222cdd Content-Type: text/plain; charset=UTF-8 On Tue, Nov 4, 2014 at 8:51 PM, Raj N wrote: > Is there a good formula to calculate heap utilization in Cassandra > pre-1.1, specifically 1.0.10. We are seeing gc pressure on our nodes. And I > am trying to estimate what could be causing this? Using node tool info my > steady state heap is at about 10GB. XMX is 12G. > Basically, no. If you really want to know, take a heap dump and load it into Eclipse Memory Analyzer. > I have 4.5 GB of bloom filters which I can derive looking at cfstats > This is a *very* large percentage of your total heap, and is probably the lever you have most influence on pulling. > I have negligible row caching. > Row caching is generally not advised in that era, especially with heap pressure. > I have key caching enabled on my cfs. I couldn't find an easy way to > estimate how much this is using, but I tried to invalidate the key cache > and I got 1.3 GB back. > Key caching is generally advisable, but 1.3GB is a lot of key cache.. > That still only adds up to 5.8 GB. I know there is index sampling going on > as well. I have around 800 million rows. Is there a way to estimate how > much space this would add up to? > Plenty. You should reduce your bloom filter size, or upgrade to a version of Cassandra that moves stuff off the heap. =Rob http://twitter.com/rcolidba --089e013cb9be263c0e0507222cdd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Nov 4, 2014 at 8:51 PM, Raj N <raj.cassandra@gmail.com> wrote:
Is there a = good formula to calculate heap utilization in Cassandra pre-1.1, specifical= ly 1.0.10. We are seeing gc pressure on our nodes. And I am trying to estim= ate what could be causing this? Using node tool info my steady state heap i= s at about 10GB. XMX is 12G.

Basicall= y, no. If you really want to know, take a heap dump and load it into Eclips= e Memory Analyzer.
=C2=A0
I have 4.5 GB of bloom filters which I can derive lookin= g at cfstats

This is a *very* l= arge percentage of your total heap, and is probably the lever you have most= influence on pulling.
=C2=A0
I have negligible row caching.

Row caching is generally not advised in that era, es= pecially with heap pressure.
=C2=A0
I have key caching enabled on my cfs. I couldn= 't find an easy way to estimate how much this is using, but I tried to = invalidate the key cache and I got 1.3 GB back.

Key caching is generally advisable, but 1.3GB is a lot of = key cache..
=C2=A0
That still only adds up to 5.8 GB. I know there is index samp= ling going on as well. I have around 800 million rows. Is there a way to es= timate how much space this would add up to?
Plenty. You should reduce your bloom filter size, or upgrade t= o a version of Cassandra that moves stuff off the heap.
--089e013cb9be263c0e0507222cdd--