Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AA5A77AB for ; Mon, 19 Dec 2011 17:10:09 +0000 (UTC) Received: (qmail 39661 invoked by uid 500); 19 Dec 2011 17:10:08 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 39623 invoked by uid 500); 19 Dec 2011 17:10:08 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 39615 invoked by uid 99); 19 Dec 2011 17:10:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 17:10:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 17:10:04 +0000 Received: by wgbdr1 with SMTP id dr1so7842420wgb.20 for ; Mon, 19 Dec 2011 09:09:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=N8Wlp7zrIEOFJWRRTzyxatzRJmRYNW3HUxusbr8DIrg=; b=ByPRtL+ZrZZwIjBVRkQMMYxdeEjYx5AEkA6mF5fxz+tlRq0KYKUaD8Q1PhEQmgx1ef CwiUCrwTUkrJJhEyW8XUu2j3bCyLyhy+dZZKcQjxerOUevIae98EUh8jhgShVofQS8hA WekfATvJ+QdKmxYdQk1ZrFX5Yt0Vi40R0mkPs= MIME-Version: 1.0 Received: by 10.227.60.4 with SMTP id n4mr12730469wbh.9.1324314582504; Mon, 19 Dec 2011 09:09:42 -0800 (PST) Received: by 10.216.164.68 with HTTP; Mon, 19 Dec 2011 09:09:42 -0800 (PST) In-Reply-To: References: <7EEF5D4D92954004A994FB1790230053@china.huawei.com> Date: Mon, 19 Dec 2011 09:09:42 -0800 Message-ID: Subject: Re: Registered listeners not getting removed - Leading to memory leak From: Ted Yu To: dev@hbase.apache.org Cc: ramkrishna.vasudevan@huawei.com Content-Type: multipart/alternative; boundary=00151747c69642d3f504b475048c --00151747c69642d3f504b475048c Content-Type: text/plain; charset=ISO-8859-1 >From Ram: >> We are using HBASE-0.90.4 + some patches. The backported version of HBASE-3777 is not present. On Mon, Dec 19, 2011 at 8:15 AM, Stack wrote: > On Mon, Dec 19, 2011 at 3:59 AM, Ramkrishna S Vasudevan > wrote: > > Hi > > > > > > > > From the HBaseAdmin if i try to use apis like tableExists, compact, > flush, > > closeRegion all creates new CataLogTracker. Everytime we register a > > listener but we dont > > > > remove the listeners. > > > > Note that, every catalog tracker creation calls > HConnection.getConnection(). > > > > On continuous run of admin apis this is leading to memory leak. Correct > me > > if am wrong. > > > > > > > > Any suggestions on this on how to clear the listeners? > > > > > > Which hbase is this Ram? 0.90 and 0.92 work differently around > CatalogTracker. > St.Ack > --00151747c69642d3f504b475048c--