Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 108A310721 for ; Fri, 6 Dec 2013 08:12:56 +0000 (UTC) Received: (qmail 61750 invoked by uid 500); 6 Dec 2013 08:12:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 61617 invoked by uid 500); 6 Dec 2013 08:12:45 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 61589 invoked by uid 99); 6 Dec 2013 08:12:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 08:12:41 +0000 Date: Fri, 6 Dec 2013 08:12:41 +0000 (UTC) From: "Liang Xie (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10089) Metrics intern table names cause eventual permgen OOM in 0.94 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-10089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841084#comment-13841084 ] Liang Xie commented on HBASE-10089: ----------------------------------- maybe we can enhance hbase findbugs setting file to detect String.intern()?(probably currently it does, but i don't know, aha) IIRC, interned string could be gc(ed), so i just curious why it still perm OOM:) P.S: If you still think intern is the murder, another workaroud is to try JDK7+, the String.intern() will not allocate in perm anymore:) > Metrics intern table names cause eventual permgen OOM in 0.94 > ------------------------------------------------------------- > > Key: HBASE-10089 > URL: https://issues.apache.org/jira/browse/HBASE-10089 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.0, 0.94.14 > Reporter: Dave Latham > Priority: Minor > > As part of the metrics system introduced in HBASE-4768 there are two places that hbase uses String interning ( SchemaConfigured and SchemaMetrics ). This includes interning table names. We have long running environment where we run regular integration tests on our application using hbase. Those tests create and drop tables with new names regularly. These leads to filling up the permgen with interned table names. Workaround is to periodically restart the region servers. -- This message was sent by Atlassian JIRA (v6.1#6144)