Return-Path: Delivered-To: apmail-incubator-cassandra-dev-archive@minotaur.apache.org Received: (qmail 15735 invoked from network); 1 Dec 2009 21:24:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 21:24:35 -0000 Received: (qmail 83414 invoked by uid 500); 1 Dec 2009 21:24:34 -0000 Delivered-To: apmail-incubator-cassandra-dev-archive@incubator.apache.org Received: (qmail 83393 invoked by uid 500); 1 Dec 2009 21:24:34 -0000 Mailing-List: contact cassandra-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-dev@incubator.apache.org Received: (qmail 83347 invoked by uid 99); 1 Dec 2009 21:24:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 21:24:34 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.192.241.111] (HELO smtp111.dfw.emailsrvr.com) (67.192.241.111) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 21:24:26 +0000 Received: from relay11.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay11.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id EA96317FF05 for ; Tue, 1 Dec 2009 16:24:05 -0500 (EST) Received: by relay11.relay.dfw.mlsrvr.com (Authenticated sender: eevans-AT-racklabs.com) with ESMTPSA id DF4BF17FBF8 for ; Tue, 1 Dec 2009 16:24:05 -0500 (EST) Subject: Re: stress insert benchmark & cassandra hangup/crash From: Eric Evans To: cassandra-dev@incubator.apache.org In-Reply-To: <4B15195E.9070204@kreado.com> References: <4B15195E.9070204@kreado.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 01 Dec 2009 15:24:25 -0600 Message-ID: <1259702665.19220.48.camel@achilles> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2009-12-01 at 15:25 +0200, pavel@kreado.com pop wrote: > I did simple insert benchmark in java (see code below). It uses 5 > threads to write records in one CF. > After some point cassandra hangup, then crashes. I use single node > cassandra installation with commit log on separate hdd. > > Hardware: > AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ > 4 GB RAM, > 2xHDD Samsung 1TB 32MB cache 7200RPM [ ... ] > After long pause cassandra crashes (i use 1GB for java heap): > > java.lang.OutOfMemoryError: Java heap space > Dumping heap to java_pid21132.hprof ... > Heap dump file created [1196864899 bytes in 51.159 secs] > > I tried this testcase on three mashines with latest development > version > of cassandra and with 0.4.2. And i got the same problems. [ ... ] > client.insert("suggy", > String.valueOf(i), > cp, > > "================================================================================".getBytes("UTF-8"), > timestamp, > ConsistencyLevel.ZERO); With ConsistencyLevel.ZERO writes are completely asynchronous, so one possibility is that you are simply pushing more writes than the node can handle and it's getting further and further behind, eventually exhausting the heap. You should probably also read http://wiki.apache.org/cassandra/MemtableThresholds if you haven't already. -- Eric Evans eevans@rackspace.com