Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 C494610DA4 for ; Fri, 4 Sep 2015 07:52:16 +0000 (UTC) Received: (qmail 24489 invoked by uid 500); 4 Sep 2015 07:52:16 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 24436 invoked by uid 500); 4 Sep 2015 07:52:16 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 24424 invoked by uid 99); 4 Sep 2015 07:52:15 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2015 07:52:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 55776F16D3 for ; Fri, 4 Sep 2015 07:52:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id L4yop_zm3488 for ; Fri, 4 Sep 2015 07:52:07 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 354C82133F for ; Fri, 4 Sep 2015 07:52:07 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so8784700wic.0 for ; Fri, 04 Sep 2015 00:52:07 -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=W8RGpBaGEkFESNVdKLFqMAxWGoXH1oV4JWh3vsV28L8=; b=MSHkX7gp9IjXRuh0ct+esRWW9Fv+QvpG7Ltemv2Tt5/MlwnZMSSVsg4bOM/0+e07/A ltv1hTGIXQX8uw5cArl/EwnuZCgTJkexFnu6rw1gvnLPYQG0uOyPEvyqC592Q8jEeCL7 hk6l04e8/8D7qdt939q5Qispgz98HWD/Zr9IRNopyGXnEgV40Dd695R0bH3IvPD2Dbvl OMN3kpo3d0q857RRUUG4/PbNBCkIM/Y6pp5QtKUZVLLVEoGfHvyK35AmKU3t4SAT5JRV vReFfVt99XtF/wm5Bfuw7EGMVeM9EN/XPacXhUOd1IUJK+4ww/Ndqe6o5ZQY2ChOEJzG dQ3A== X-Received: by 10.180.104.68 with SMTP id gc4mr4944320wib.67.1441353126685; Fri, 04 Sep 2015 00:52:06 -0700 (PDT) Received: from [127.0.0.1] (cpc11-hitc6-2-0-cust29.9-2.cable.virginm.net. [86.27.129.30]) by smtp.googlemail.com with ESMTPSA id ry1sm1066682wjb.24.2015.09.04.00.52.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 00:52:06 -0700 (PDT) Message-ID: <55E94DA5.9060300@gmail.com> Date: Fri, 04 Sep 2015 08:52:05 +0100 From: Karol Dudzinski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: user@zookeeper.apache.org Subject: Re: Packet len4622126 is out of range! References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150903-1, 03/09/2015), Outbound message X-Antivirus-Status: Clean Hi Eric, You'll need to set -Djute.maxbuffer to a sufficiently large number (larger than the one in your error). I believe this indicates /test has a lot of children, sufficiently many that their names don't fit into the default buffer for responses from the server. I've only seen this with 200K+ children. If you don't want to edit the cli script, you can add the maxbuffer setting to the JVMFLAGS env var before running the cli. Karol On 04/09/2015 08:26, Lee Eric wrote: > Hi, > > I got following exceptions when access one node: > > ls /test > [main-SendThread(localhost:2181)] WARN org.apache.zookeeper.ClientCnxn > - Session 0x14f973545fe0000 for server localhost/0:0:0:0:0:0:0:1:2181, > unexpected error, closing socket connection and attempting reconnect > java.io.IOException: Packet len4622126 is out of range! > at org.apache.zookeeper.ClientCnxnSocket.readLength(ClientCnxnSocket.java:112) > at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:79) > at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) > Exception in thread "main" > org.apache.zookeeper.KeeperException$ConnectionLossException: > KeeperErrorCode = ConnectionLoss for /test > at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) > at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) > at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472) > at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500) > at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:720) > at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:588) > at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:360) > WATCHER:: > > WatchedEvent state:Disconnected type:None path:null > > at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:349) > at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282) > > It seems this issue is caused by too many znodes. Is there any way to > tune the threshold or fix that? > > Thanks. > > Hui --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus