Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 8A72811BD2 for ; Tue, 24 Jun 2014 17:25:06 +0000 (UTC) Received: (qmail 22071 invoked by uid 500); 24 Jun 2014 17:25:06 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 22024 invoked by uid 500); 24 Jun 2014 17:25:06 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 22014 invoked by uid 99); 24 Jun 2014 17:25:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 17:25:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josh.elser@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qc0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 17:24:59 +0000 Received: by mail-qc0-f178.google.com with SMTP id c9so585419qcz.23 for ; Tue, 24 Jun 2014 10:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Pa0bOTKRqvimbnUgzrGPF9B6d8tjRK0QS25z4QOjHPE=; b=z2R8mfZZK6recBS7zC5cDg3PoYE7vcF7IShreYPbKzjpmsp7zLQRZm/wwEsY7XL9Rw 6kWEOKoxraREpW1Ap+xcXWa6cVP4qPWIPAj/bdja93P6gsPxjdRgV3SzIJIhi0CbpFiq hOmWc4mK4Itw7YODUwOfADBTF/b7BC9WbzchhrubcHy1YRMjs9cZUUqTLaCTOxuYkWfj tjy7HWQF6AxCrY7pKtxvZgfKjdjVawJssOXgu6Me5X3epkLqN6niwngdmcMDcBcIxJ/3 WpNZfmZFi0YAFRPSYHOtKQzUZbr9CHtrBr3dmWomJvaX+xtb1glMNphoRkStG11MMXWi UeUQ== X-Received: by 10.224.20.10 with SMTP id d10mr4125233qab.16.1403630679088; Tue, 24 Jun 2014 10:24:39 -0700 (PDT) Received: from HW10447.local (pool-71-166-48-47.bltmmd.fios.verizon.net. [71.166.48.47]) by mx.google.com with ESMTPSA id 10sm1382827qaj.17.2014.06.24.10.24.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 10:24:38 -0700 (PDT) Message-ID: <53A9B455.8060200@gmail.com> Date: Tue, 24 Jun 2014 13:24:37 -0400 From: Josh Elser User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Out Of Memory Error - Accumulo & Storm References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Sivan, This one is pretty straightforward when you decode it: you ran out of memory on your host. Java threads will map to threads on the operating system and each of those OS thread requires memory. When the JVM tries to start a new thread, but can't because the OS can't allocate any more memory to make that new OS thread, you'll get this error. Try freeing up some memory on your host (reduce max JVM heap sizes, turn down caches on BatchWriter, grow the memory if your host is a virtual machine, etc). It's a generally a good idea to leave a few hundred MB of memory available on your host for the OS to use. Hope that helps. On 6/24/14, 1:18 PM, Sivan Sasidharan wrote: > Accumulo fails with the below error when running in the storm cluster. > Please advice. > > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:640) > at > java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703) > at > java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:652) > at > java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78) > at > org.apache.accumulo.core.client.impl.TabletServerBatchWriter$MutationWriter.addMutations(TabletServerBatchWriter.java:740) > at > org.apache.accumulo.core.client.impl.TabletServerBatchWriter$MutationWriter.addMutations(TabletServerBatchWriter.java:702) > at > org.apache.accumulo.core.client.impl.TabletServerBatchWriter.startProcessing(TabletServerBatchWriter.java:232) > at > org.apache.accumulo.core.client.impl.TabletServerBatchWriter.flush(TabletServerBatchWriter.java:320) > at > org.apache.accumulo.core.client.impl.BatchWriterImpl.flush(BatchWriterImpl.java:57) > at > com.ey.analytics.aap.realtime.core.bolts.adapters.RealTimeAccumuloTweetBolt.dataManipulate(RealTimeAccumuloTweetBolt.java:105) > at > com.ey.analytics.aap.realtime.core.bolts.RealTimeBolt.execute(RealTimeBolt.java:59) > at > backtype.storm.daemon.executor$fn__4050$tuple_action_fn__4052.invoke(executor.clj:566) > at > backtype.storm.daemon.executor$mk_task_receiver$fn__3976.invoke(executor.clj:345) > at > backtype.storm.disruptor$clojure_handler$reify__1606.onEvent(disruptor.clj:43) > at > backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:84) > at > backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:58) > at > backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:62) > at > backtype.storm.daemon.executor$fn__4050$fn__4059$fn__4106.invoke(executor.clj:658) > at backtype.storm.util$async_loop$fn__465.invoke(util.clj:377) > at clojure.lang.AFn.run(AFn.java:24) > at java.lang.Thread.run(Thread.java:662) > > > Thanks > Sivan Sasidaran >