From common-issues-return-156779-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Aug 29 06:16:06 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 8C7F1180674 for ; Wed, 29 Aug 2018 06:16:05 +0200 (CEST) Received: (qmail 29641 invoked by uid 500); 29 Aug 2018 04:16:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 29459 invoked by uid 99); 29 Aug 2018 04:16: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; Wed, 29 Aug 2018 04:16: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 0508D1A099F for ; Wed, 29 Aug 2018 04:16:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Ofhsxz_i6Gs6 for ; Wed, 29 Aug 2018 04:16:03 +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 BA5645F3D0 for ; Wed, 29 Aug 2018 04:16: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 C0EB9E0E5D for ; Wed, 29 Aug 2018 04:16: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 54F332183D for ; Wed, 29 Aug 2018 04:16:00 +0000 (UTC) Date: Wed, 29 Aug 2018 04:16:00 +0000 (UTC) From: "Sunil Govindan (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-15696) KMS performance regression due to too many open file descriptors after Jetty migration 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/HADOOP-15696?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 595912#comment-16595912 ]=20 Sunil Govindan commented on HADOOP-15696: ----------------------------------------- Hi [~jojochuang] As this jira is marked for 3.2 as a blocker, cud u pls help to take this fo= rward or move out if its not feasible to finish in coming weeks. 3.2 code f= reeze date is=C2=A0nearby in=C2=A0a=C2=A0weeks. Kindly help to check the sa= me. > KMS performance regression due to too many open file descriptors after Je= tty migration > -------------------------------------------------------------------------= ------------- > > Key: HADOOP-15696 > URL: https://issues.apache.org/jira/browse/HADOOP-15696 > Project: Hadoop Common > Issue Type: Bug > Components: kms > Affects Versions: 3.0.0-alpha2 > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Priority: Blocker > Attachments: HADOOP-15696.001.patch, Screen Shot 2018-08-22 at 11= .36.16 AM.png, Screen Shot 2018-08-22 at 4.26.51 PM.png, Screen Shot 2018-0= 8-22 at 4.26.51 PM.png, Screen Shot 2018-08-22 at 4.27.02 PM.png, Screen Sh= ot 2018-08-22 at 4.30.32 PM.png, Screen Shot 2018-08-22 at 4.30.39 PM.png, = Screen Shot 2018-08-24 at 7.08.16 PM.png > > > We recently found KMS performance regressed in Hadoop 3.0, possibly linki= ng to the migration from Tomcat to Jetty in=C2=A0HADOOP-13597. > Symptoms: > # Hadoop 3.x KMS open file descriptors quickly rises to more than 10 thou= sand under stress, sometimes even exceeds 32K, which is the system limit, c= ausing failures for any access to encryption zones. Our internal testing sh= ows the openfd number was in the range of a few hundred in Hadoop 2.x, and = it increases by almost 100x in Hadoop 3. > # Hadoop 3.x KMS as much as twice the heap size than in Hadoop 2.x. The s= ame heap size can go OOM in Hadoop 3.x. Jxray analysis suggests most of the= m are temporary byte arrays associated with open SSL connections. > # Due to the heap usage, Hadoop 3.x KMS has more frequent GC activities, = and we observed up to 20% performance reduction due to GC. > A possible solution is to reduce the idle timeout setting in HttpServer2.= It is currently hard-coded 10 seconds. By setting it to 1 second, open fds= dropped from 20 thousand down to 3 thousand in my experiment. > File this jira to invite open discussion for a solution. > Credit: [~misha@cloudera.com] for the proposed Jetty idle timeout remedy;= [~xiaochen] for digging into this problem. > Screenshots: > CDH5 (Hadoop 2) KMS CPU utilization, resident memory and file descriptor = chart. > !Screen Shot 2018-08-22 at 4.30.39 PM.png!=20 > CDH6 (Hadoop 3) KMS CPU utilization, resident memory and file descriptor = chart. > !Screen Shot 2018-08-22 at 4.30.32 PM.png!=20 > CDH5 (Hadoop 2) GC activities on the KMS process > !Screen Shot 2018-08-22 at 4.26.51 PM.png!=20 > CDH6 (Hadoop 3) GC activities on the KMS process > !Screen Shot 2018-08-22 at 4.27.02 PM.png!=20 > JXray report > !Screen Shot 2018-08-22 at 11.36.16 AM.png!=20 > open fd drops from 20 k down to 3k after the proposed change. > !Screen Shot 2018-08-24 at 7.08.16 PM.png!=20 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org