Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 93350 invoked from network); 27 May 2010 14:39:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 14:39:41 -0000 Received: (qmail 12531 invoked by uid 500); 27 May 2010 14:39:39 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 12411 invoked by uid 500); 27 May 2010 14:39:39 -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 12403 invoked by uid 99); 27 May 2010 14:39:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 14:39:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 14:39:33 +0000 Received: by wye20 with SMTP id 20so4375wye.31 for ; Thu, 27 May 2010 07:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=H2qGzQbJiRk1wh8l/vHnkn7qGn/l6pAApBnFMCFTXV0=; b=WoDokqEYs08BxgjNcRiaRqR/f5+uEQ+ltnmXQPpCDbXIljdAek+gjga0YSRmz84Nvo nXWLnJWh9BmAvbxK5EJtskokfAkYQ0KKZETj37AKzCcnfXPQ8h62orGAbJjUCUArUuef WkwNt9t+1MfLpMZn6DYBdePeNNAPgixwcmDl0= 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 :content-type:content-transfer-encoding; b=STHSV1zok2VhHlrDXWVtrs9rYnSmSeZinJ5PUBRDG96pBHTZ+WrZ8m+W+P6+0POCD9 ZnGHApxFiCCZ0Hl6zaFglT+CMpAS9mlcidjx80Xvh3QIVQZPLVyPDUIe9NHshcD0W+hr get8I7BXmUPoUz5usfquuFTbxhP0GXo2cnRVM= Received: by 10.216.155.141 with SMTP id j13mr725874wek.7.1274971152379; Thu, 27 May 2010 07:39:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.17.197 with HTTP; Thu, 27 May 2010 07:38:52 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 27 May 2010 08:38:52 -0600 Message-ID: Subject: Re: Cassandra-0.6.1 Crash Error: out of memory To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org It looks like you simply don't have a large enough heap for all the in-flight data. Low-hanging fruit includes - upgrade to 0.6.2 (available from http://people.apache.org/~eevans/ until release is official later today) - when you get a TimeoutException on the client, sleep 100ms or so before retrying - increase the max heap size On Tue, May 25, 2010 at 9:10 PM, Peng Guo wrote: > > Hi > > There are 3 Cassandra=A0 servcer runing, and 18 process insert lots of da= ta > into the=A0 Cassandra=A0 servcer. > After runing for an hour=A0 the Cassandra=A0 servcer crashed. > The error msg is below: > > INFO [GC inspection] 2010-05-26 00:56:50,153 GCInspector.java (line 110) = GC > for ConcurrentMarkSweep: 7764 ms, 120920 reclaimed leaving 2168941512 use= d; > max is 2284584960 > =A0INFO [GC inspection] 2010-05-26 01:01:51,803 GCInspector.java (line 11= 0) GC > for ConcurrentMarkSweep: 5368 ms, 214864 reclaimed leaving 2168850488 use= d; > max is 2284584960 > ERROR [pool-1-thread-63] 2010-05-26 01:10:34,721 Cassandra.java (line 161= 8) > Internal error processing batch_mutate > java.lang.OutOfMemoryError: Java heap space > ERROR [pool-1-thread-55] 2010-05-26 01:10:29,157 CassandraDaemon.java (li= ne > 78) Fatal exception in thread Thread[pool-1-thread-55,5,main] > java.lang.OutOfMemoryError: Java heap space > ERROR [main] 2010-05-26 01:10:29,157 CassandraDaemon.java (line 195) > Exception encountered during startup. > java.lang.OutOfMemoryError: Java heap space > ERROR [CACHETABLE-TIMER-2] 2010-05-26 01:04:58,068 CassandraDaemon.java > (line 78) Fatal exception in thread Thread[CACHETABLE-TIMER-2,5,main] > java.lang.OutOfMemoryError: Java heap space > ERROR [pool-1-thread-56] 2010-05-26 01:14:35,482 CassandraDaemon.java (li= ne > 78) Fatal exception in thread Thread[pool-1-thread-56,5,main] > java.lang.OutOfMemoryError: Java heap space > =A0INFO [GC inspection] 2010-05-26 01:14:35,482 GCInspector.java (line 11= 0) GC > for ConcurrentMarkSweep: 7702 ms, 15440656 reclaimed leaving 2153622464 > used; max is 2284584960 > ERROR [HINTED-HANDOFF-POOL:1] 2010-05-26 01:14:35,274 > DebuggableThreadPoolExecutor.java (line 94) Error in executor futuretask > java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java > heap space > =A0=A0=A0=A0=A0=A0=A0 at > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) > =A0=A0=A0=A0=A0=A0=A0 at java.util.concurrent.FutureTask.get(FutureTask.j= ava:83) > =A0=A0=A0=A0=A0=A0=A0 at > org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.afterExecute= (DebuggableThreadPoolExecutor.java:86) > =A0=A0=A0=A0=A0=A0=A0 at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor= .java:888) > =A0=A0=A0=A0=A0=A0=A0 at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:908) > =A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.OutOfMemoryError: Java heap space > ERROR [pool-1-thread-50] 2010-05-26 01:12:58,865 CassandraDaemon.java (li= ne > 78) Fatal exception in thread Thread[pool-1-thread-50,5,main] > java.lang.OutOfMemoryError: Java heap space > > -- > Regards > =A0 =A0Peng Guo > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com