From dev-return-67193-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Feb 1 02:10:10 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id B7724180662 for ; Thu, 1 Feb 2018 02:10:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5D40160C55; Thu, 1 Feb 2018 01:10:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ECF40160C42 for ; Thu, 1 Feb 2018 02:10:09 +0100 (CET) Received: (qmail 86354 invoked by uid 500); 1 Feb 2018 01:10:04 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 86342 invoked by uid 99); 1 Feb 2018 01:10:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2018 01:10:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 83B2A1A5CCC for ; Thu, 1 Feb 2018 01:10:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Oa6W6CgTc1hh for ; Thu, 1 Feb 2018 01:10:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5C9DC5F23E for ; Thu, 1 Feb 2018 01:10:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 93017E0144 for ; Thu, 1 Feb 2018 01:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1371521E81 for ; Thu, 1 Feb 2018 01:10:00 +0000 (UTC) Date: Thu, 1 Feb 2018 01:10:00 +0000 (UTC) From: "wuyiyun (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ZOOKEEPER-2972) When use SSL on zookeeper server, counts of watches may increase more than forty thousands and lead zoookeeper process outofmemory error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2972?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] wuyiyun updated ZOOKEEPER-2972: ------------------------------- Labels: features (was: ) > When use SSL on zookeeper server, counts of watches may increase more tha= n forty thousands and lead zoookeeper process outofmemory error > -------------------------------------------------------------------------= --------------------------------------------------------------- > > Key: ZOOKEEPER-2972 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2972 > Project: ZooKeeper > Issue Type: Bug > Components: recipes > Affects Versions: 3.5.3 > Environment: I deploy a zookeeper cluster on three nodes. And ena= ble ssl capability under below guidline:[https://cwiki.apache.org/confluenc= e/display/ZOOKEEPER/ZooKeeper+SSL+User+Guide] > And i use zookeeper client which also enable ssl capability to connect th= is zookeeper server and set same data to two node under below demo: > CuratorFramework client; > // each time we instance a new zookeeper client .... > String path1, path2; > // instance path1, path2 ...... > String status =3D "ok" > client.client.setData().forPath(path1,status.getBytes()); > client.client.setData().forPath(path2,status.getBytes()); > // close zookeeper client....... > This function will be called each five seconds and it=C2=A0work good whil= e ssl capability disabled. when ssl capability enabled, zookeeper server ru= n about one day, and an outofmemory error will=C2=A0occurred and auto produ= ce=C2=A0java_pidXXX.hprof file by zookeeper process . i use Eclipse Memory = Analyzer to analize the hprof file and found=C2=A0instance of DataTree used= more than six handreds MB memory and more than eighty seven percent memory= used by dataTree's field which name is dataWatches. And i use four letter = command to check and found too many watches on all of this three nodes. I g= uess those too many watches cause the error =C2=A0but i don't know why ther= e are so many watches! > Additional, if disabled the ssl capability. use four letter command and c= an only found there are several =C2=A0watches on each node. and count of wa= tches will not increased. > =C2=A0 > Each zookeeper node run under VM which has eight core and eight GB memory= , and it's os are centos6.5/centos7.3/redhat6.5/redhat7 and run zookeeper a= nd this demo with JDK1.8. > This issue will happened under zookeeper 3.5.1 and 3.5.2 and 3.5.3.=C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 > ....... > Reporter: wuyiyun > Priority: Major > Labels: features > > When use SSL on zookeeper server, counts of watches may increase more tha= n forty thousands and lead zoookeeper process outofmemroy error after zooke= eper server started one day. > check command: > echo wchs | nc localhost 2181 > check result: > [zookeeper@localhost bin]$ echo wchs | nc localhost 2181 > 44412 connections watching 1 paths > Total watches:44412 -- This message was sent by Atlassian JIRA (v7.6.3#76005)