Return-Path: X-Original-To: apmail-flume-user-archive@www.apache.org Delivered-To: apmail-flume-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 254C69223 for ; Wed, 22 Aug 2012 20:28:39 +0000 (UTC) Received: (qmail 534 invoked by uid 500); 22 Aug 2012 20:28:38 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 415 invoked by uid 500); 22 Aug 2012 20:28:38 -0000 Mailing-List: contact user-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flume.apache.org Delivered-To: mailing list user@flume.apache.org Received: (qmail 405 invoked by uid 99); 22 Aug 2012 20:28:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 20:28:38 +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 (nike.apache.org: domain of hshreedharan@cloudera.com designates 209.85.160.53 as permitted sender) Received: from [209.85.160.53] (HELO mail-pb0-f53.google.com) (209.85.160.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 20:28:31 +0000 Received: by pbbro2 with SMTP id ro2so2419365pbb.26 for ; Wed, 22 Aug 2012 13:28:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition:x-gm-message-state; bh=IoA/11s0XfodDt/+0n+Ui/o4QAMwUoMtFY+XCfAFRp0=; b=HOH9tp6dE4eQrOuzNYb8yLbxoj74oozqEKxwpfp+c6pSZHm2VdKYrJj4bNHDSpHxcH /KXzcQJPx1dCGQGWGLgpf2uXCvq39zDtHzJG95mm5qGLy+EdABLVRS3iAZUp8gKu/4uQ u2CHR16cqy3KwvRt/PLmF/JaEUzFy7inE3+8rVRXe5U3VMBQCJjRAvVnr720P9GwrLyi DCO6CV3KDokhvAa+LZjKAwbpWpJP3qAgqW893sct+1lOwBAz9ekaqhxy0w6+BUS/EZ50 +1nGzqMRXat143EuWdODou/2HUxA9fPWzGeZuSkePUj1XcprIz3S6kcCkWFt2M5a/PbC MksQ== Received: by 10.68.224.161 with SMTP id rd1mr36955639pbc.133.1345667289714; Wed, 22 Aug 2012 13:28:09 -0700 (PDT) Received: from [10.0.1.5] (c-67-161-24-53.hsd1.ca.comcast.net. [67.161.24.53]) by mx.google.com with ESMTPS id po4sm1291602pbb.13.2012.08.22.13.28.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 13:28:09 -0700 (PDT) Date: Wed, 22 Aug 2012 13:28:07 -0700 From: Hari Shreedharan To: user@flume.apache.org Message-ID: <5C12D9F33C6D484D8FD82F07C3487E1F@cloudera.com> In-Reply-To: References: Subject: Re: Application hanging writing to Flume HDFS sink X-Mailer: sparrow 1.6.3 (build 1172) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Gm-Message-State: ALoCoQlOyPI674f7WQt3WZ0f/JBdJ9ose3Ia85gbWrjtkb09f4bIayI1kO81uxeC3ZLkfLs60zm3 Why do you say they are waiting? They are in Runnable state. That said this seems to be due to this: https://github.com/netty/netty/issues/327 I am not sure if this is the same issue, but 100% CPU can be caused by the above. Hari -- Hari Shreedharan On Wednesday, August 22, 2012 at 12:54 PM, Mohit Anchlia wrote: > I have 5 threads writing json blob to hdfs but what I see is application hanging and when I do the thread dump on the application I see threads waiting on epollWait: > > "New I/O client worker #5-1" daemon prio=10 tid=0x00002aaac81e3000 nid=0x7080 runnable [0x000000004395c000] > java.lang.Thread.State: RUNNABLE > at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method) > at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:210) > at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65) > at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69) > - locked <0x000000060c3cc170> (a sun.nio.ch.Util$2) > - locked <0x000000060c3cc160> (a java.util.Collections$UnmodifiableSet) > - locked <0x000000060c3cbf58> (a sun.nio.ch.EPollSelectorImpl) > at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80) > at org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:38) > at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:165) > at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) > at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662)