Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 2470 invoked from network); 7 Mar 2011 21:55:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Mar 2011 21:55:45 -0000 Received: (qmail 77653 invoked by uid 500); 7 Mar 2011 21:55:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 77599 invoked by uid 500); 7 Mar 2011 21:55:43 -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 77591 invoked by uid 99); 7 Mar 2011 21:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 21:55:43 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.208.4.195] (HELO mout.perfora.net) (74.208.4.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 21:55:37 +0000 Received: from [192.168.2.179] (cpe-74-68-138-164.nyc.res.rr.com [74.68.138.164]) by mrelay.perfora.net (node=mrus3) with ESMTP (Nemesis) id 0M9bGh-1PpKgQ4BsF-00CtLv; Mon, 07 Mar 2011 16:55:15 -0500 Message-ID: <4D7553DD.1080702@yellowseo.com> Date: Mon, 07 Mar 2011 16:53:33 -0500 From: Paul Pak User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Nodes frozen in GC References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:152BT8fzo+5BVNiG4xYE4X7Z0YsrxrJevbnzgZKohdl hXBlXmCBOOeT6AtEnbevBGXz5lHa/m2CvdwUZzyKdktAVUTsu1 eYDzmr5yYzCp0LRK7TMZEGOGkeShpLu1S1c8j/osLFKfJDKdYa 9N6GFhTNc5IJWduUmWv2YPP36sUofT4Amz/4AYwIbWVtPt7jWE 4JSoWRMmqU3SIX66dmeNp4Wv/zZnvNndLrcg7EVeto= So, are you saying this is normal and expected from Cassandra? So, under load, we can expect java garbage collection to stop the Cassandra process on that server from time to time, essentially taking out the node for short periods of time while it does garbage collection? Also, why is there so much garbage collection to begin with? Memcache uses a slab allocator to reuse blocks to prevent allocation/deallocation of blocks from consuming all the cpu time. Are there any plans to reuse blocks so the garbage collector doesn't have to work so hard? Paul On 3/7/2011 4:35 PM, Jonathan Ellis wrote: > It sounds like you're complaining that the JVM sometimes does stop-the-world GC. > > You can mitigate this but not (for most workloads) eliminate it with > GC option tuning. That's simply the state of the art for Java garbage > collection right now. > > On Sun, Mar 6, 2011 at 2:18 AM, ruslan usifov wrote: >> >> 2011/3/6 aaron morton >>> Your node is under memory pressure, after the GC there is still 5.7GB in >>> use. In fact it looks like memory usage went up during the GC process. >>> >>> Can you reduce the memtable size, caches or the number of CF's or increase >>> the JVM size? Also is this happening under heavy load ? >>> >> Yes I do bulk load to cluster >> >> >> I reduce memtable to 64MB sutuation became better, but it is all the same >> very rare GC more than 15 Sec happens. Can reduce >> flush_largest_memtables_at helps? O may be some GC options? >> > >