From issues-return-128967-archive-asf-public=cust-asf.ponee.io@hive.apache.org Tue Jul 17 12:01:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A72A218067A for ; Tue, 17 Jul 2018 12:01:08 +0200 (CEST) Received: (qmail 8272 invoked by uid 500); 17 Jul 2018 10:01:07 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 8262 invoked by uid 99); 17 Jul 2018 10:01:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2018 10:01:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5F4A3C141E for ; Tue, 17 Jul 2018 10:01:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id aMKHYBW_Qf4c for ; Tue, 17 Jul 2018 10:01:02 +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 1E9945F396 for ; Tue, 17 Jul 2018 10:01:02 +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 25B2CE2578 for ; Tue, 17 Jul 2018 10:01:01 +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 8925023FA2 for ; Tue, 17 Jul 2018 10:01:00 +0000 (UTC) Date: Tue, 17 Jul 2018 10:01:00 +0000 (UTC) From: "Sankar Hariappan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-20192) HS2 is leaking JDOPersistenceManager objects. 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/HIVE-20192?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Sankar Hariappan updated HIVE-20192: ------------------------------------ Description:=20 Hiveserver2 instances where crashing every 3-4 days and observed=C2=A0HS2 i= n on unresponsive state. Also, observed that the FGC collection happening r= egularly From JXray report it is seen that pmCache(List of JDOPersistenceManager obj= ects) is occupying 84% of the heap and there are around 16,000 references o= f UDFClassLoader. {code:java} 10,759,230K (84.7%) Object tree for GC root(s) Java Static org.apache.hadoo= p.hive.metastore.ObjectStore.pmf - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.pmCache =E2=86=98 10= ,744,419K (84.6%), 1 reference(s) - j.u.Collections$SetFromMap.m =E2=86=98 10,744,419K (84.6%), 1 reference= (s) - {java.util.concurrent.ConcurrentHashMap}.keys =E2=86=98 10,743,764K (= 84.5%), 16,872 reference(s) - org.datanucleus.api.jdo.JDOPersistenceManager.ec =E2=86=98 10,738,8= 31K (84.5%), 16,872 reference(s) ... 3 more references together retaining 4,933K (< 0.1%) - java.util.concurrent.ConcurrentHashMap self 655K (< 0.1%), 1 object(s= ) ... 2 more references together retaining 48b (< 0.1%) - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.nucleusContext =E2= =86=98 14,810K (0.1%), 1 reference(s) ... 3 more references together retaining 96b (< 0.1%){code} When the=C2=A0RawStore object is re-created, it is not allowed to be update= d into the=C2=A0ThreadWithGarbageCleanup.threadRawStoreMap which leads to t= he new RawStore never gets cleaned-up when the thread exit. =C2=A0 was: Hiveserver2 instances where every 3-4 days they are observing HS2 in an unr= esponsive state, we observed that the FGC collection happening regularly From JXray report it is seen that pmCache(List of JDOPersistenceManager obj= ects) is occupying 84% of the heap and there are around 16,000 references o= f UDFClassLoader. {code:java} 10,759,230K (84.7%) Object tree for GC root(s) Java Static org.apache.hadoo= p.hive.metastore.ObjectStore.pmf - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.pmCache =E2=86=98 10= ,744,419K (84.6%), 1 reference(s) - j.u.Collections$SetFromMap.m =E2=86=98 10,744,419K (84.6%), 1 reference= (s) - {java.util.concurrent.ConcurrentHashMap}.keys =E2=86=98 10,743,764K (= 84.5%), 16,872 reference(s) - org.datanucleus.api.jdo.JDOPersistenceManager.ec =E2=86=98 10,738,8= 31K (84.5%), 16,872 reference(s) ... 3 more references together retaining 4,933K (< 0.1%) - java.util.concurrent.ConcurrentHashMap self 655K (< 0.1%), 1 object(s= ) ... 2 more references together retaining 48b (< 0.1%) - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.nucleusContext =E2= =86=98 14,810K (0.1%), 1 reference(s) ... 3 more references together retaining 96b (< 0.1%){code} When the=C2=A0RawStore object is re-created, it is not allowed to be update= d into the=C2=A0ThreadWithGarbageCleanup.threadRawStoreMap which leads to t= he new RawStore never gets cleaned-up when the thread exit. =C2=A0 > HS2 is leaking JDOPersistenceManager objects. > --------------------------------------------- > > Key: HIVE-20192 > URL: https://issues.apache.org/jira/browse/HIVE-20192 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 3.0.0, 3.1.0 > Reporter: Sankar Hariappan > Assignee: Sankar Hariappan > Priority: Major > Labels: HiveServer2 > > Hiveserver2 instances where crashing every 3-4 days and observed=C2=A0HS2= in on unresponsive state. Also, observed that the FGC collection happening= regularly > From JXray report it is seen that pmCache(List of JDOPersistenceManager o= bjects) is occupying 84% of the heap and there are around 16,000 references= of UDFClassLoader. > {code:java} > 10,759,230K (84.7%) Object tree for GC root(s) Java Static org.apache.had= oop.hive.metastore.ObjectStore.pmf > - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.pmCache =E2=86=98 = 10,744,419K (84.6%), 1 reference(s) > - j.u.Collections$SetFromMap.m =E2=86=98 10,744,419K (84.6%), 1 referen= ce(s) > - {java.util.concurrent.ConcurrentHashMap}.keys =E2=86=98 10,743,764K= (84.5%), 16,872 reference(s) > - org.datanucleus.api.jdo.JDOPersistenceManager.ec =E2=86=98 10,738= ,831K (84.5%), 16,872 reference(s) > ... 3 more references together retaining 4,933K (< 0.1%) > - java.util.concurrent.ConcurrentHashMap self 655K (< 0.1%), 1 object= (s) > ... 2 more references together retaining 48b (< 0.1%) > - org.datanucleus.api.jdo.JDOPersistenceManagerFactory.nucleusContext =E2= =86=98 14,810K (0.1%), 1 reference(s) > ... 3 more references together retaining 96b (< 0.1%){code} > When the=C2=A0RawStore object is re-created, it is not allowed to be upda= ted into the=C2=A0ThreadWithGarbageCleanup.threadRawStoreMap which leads to= the new RawStore never gets cleaned-up when the thread exit. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)