Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A25C7200C3A for ; Fri, 3 Mar 2017 07:01:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A113F160B7A; Fri, 3 Mar 2017 06:01:51 +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 C4AC7160B6F for ; Fri, 3 Mar 2017 07:01:50 +0100 (CET) Received: (qmail 88413 invoked by uid 500); 3 Mar 2017 06:01:49 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 88400 invoked by uid 99); 3 Mar 2017 06:01:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 06:01:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 98C92C224A for ; Fri, 3 Mar 2017 06:01:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qxUEPS39-y3b for ; Fri, 3 Mar 2017 06:01:47 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B4F215FBC0 for ; Fri, 3 Mar 2017 06:01:46 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id n11so7387382wma.1 for ; Thu, 02 Mar 2017 22:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=v22yzNNOcIg0fBlrP1HxzGO1yrIJ1pY78SdGG4OAEdc=; b=EutAXlVKfHK+AkYWrZlE6KUelPgDCRwKMTelbofXJ0svVd7iBEq/rUbIfkxNaE44/G tTKmYa+Etyc/ZdPiM9uNb9Y04r8z6/fuVZWPz323lNYyXomDtA2KyRLxo9z1B49U+48p wAOFWYNsVccP7O1dkZ+MIDtL4AZS8SXTAJouVsod7S9EAVlzPBl6YTYh4H6wcaF8MuiN XzzNGw7djGahFJgZPgVSwxEAVPp5M41TfU9uK2cX7accOeFlyGg3Qru13fKkNmyWf23G /I8AW5STzLs7MjLPghOFzON6nmQeSQGSTWEkmMt2U5MXcvWKlhaZd6I5bvRGVx7e5rBp 1EuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=v22yzNNOcIg0fBlrP1HxzGO1yrIJ1pY78SdGG4OAEdc=; b=bSn6FEHD76ActWbum4SwnauwTrHfsRrqs1leyM7P2LNZDiUggFtc6drGIez8HjyEfJ IbHpOIILIuBj4EDwfsWRsRdyyAYl1ajl2LaVoY3ontUT3da+zfuNcjv5dq03h6/BI0nG cN2SYnVfbDwIGYBBBE580VmYk638Dmdfsg0h5cD1O+Lh7veVOoUkNs2Qeus0VIcroBKH EYDAySmkZFzjo2YCTxSd1ZNDFamuCzh9xQFlurbOzlZ+cWcXiBsGkzapA8CtJPP8/U7k Sx/Z1dNyRb8phTASsn7Awa0WUzx6Btd7zZ2xkW/yh78Ip+peZcte6M6NYzzerc8zuD7j YwKQ== X-Gm-Message-State: AMke39mJwNwbzuFVtbqUFRk5lTRSyPYxUQDnfc928AI9fL1XUpzMqsduwSvcmN9Vvc5PsVnLw2UXa1LZnCpA1A== X-Received: by 10.28.145.3 with SMTP id t3mr1067957wmd.47.1488520906268; Thu, 02 Mar 2017 22:01:46 -0800 (PST) MIME-Version: 1.0 Sender: saint.ack@gmail.com Received: by 10.28.65.132 with HTTP; Thu, 2 Mar 2017 22:01:45 -0800 (PST) In-Reply-To: References: <8F6D4CD2-7B2E-4363-B700-C9B960BEEFA3@gmail.com> From: Stack Date: Fri, 3 Mar 2017 06:01:45 +0000 X-Google-Sender-Auth: FzMt7k5eJ4RhBExANrpSbNGsQic Message-ID: Subject: Re: Region Server Hotspot/CPU Problem To: Hbase-User Content-Type: multipart/alternative; boundary=001a114694badbe8860549cd4722 archived-at: Fri, 03 Mar 2017 06:01:51 -0000 --001a114694badbe8860549cd4722 Content-Type: text/plain; charset=UTF-8 Could try CMS GC; the thread local collection is less prominent when CMS is in place it seems (Try thread dumping and comparing to thread dumps posted to HBASE-17072 and related issues; the original poster did a nice job describing the problem). St.Ack On Wed, Mar 1, 2017 at 2:49 PM, Saad Mufti wrote: > Someone in our team found this: > > http://community.cloudera.com/t5/Storage-Random-Access-HDFS/ > CPU-Usage-high-when-using-G1GC/td-p/48101 > > Looks like we're bitten by this bug. Unfortunately this is only fixed in > HBase 1.4.0 so we'll have to undertake a version upgrade which is not > trivial. > > ----- > Saad > > > On Wed, Mar 1, 2017 at 9:38 AM, Sudhir Babu Pothineni < > sbpothineni@gmail.com > > wrote: > > > First obvious thing to check is "major compaction" happening at the same > > time when it goes to 100% CPU? > > See this helps: > > https://community.hortonworks.com/articles/52616/hbase- > > compaction-tuning-tips.html > > > > > > > > Sent from my iPhone > > > > > On Mar 1, 2017, at 6:06 AM, Saad Mufti wrote: > > > > > > Hi, > > > > > > We are using HBase 1.0.0-cdh5.5.2 on AWS EC2 instances. The load on > HBase > > > is heavy and a mix of reads and writes. For a few months we have had a > > > problem where occasionally (once a day or more) one of the region > servers > > > starts consuming close to 100% CPU. This causes all the client thread > > pool > > > to get filled up serving the slow region server, causing overall > response > > > times to slow to a crawl and many calls either start timing out right > in > > > the client, or at a higher level. > > > > > > We have done lots of analysis and looked at various metrics but could > > never > > > pin it down to any particular kind of traffic or specific "hot keys". > > > Looking at region server logs has not resulted in any findings. The > only > > > sort of vague evidence we have is that from the reported metrics, reads > > per > > > second on the hot server looks more than the other but not in a steady > > > state but in a spiky but steady fashion, but gets per second looks no > > > different than any other server. > > > > > > Until now our hacky way that we discovered to get around this was to > just > > > restart the region server. This works because while some calls error > out > > > while the regions are in transition, this is a batch oriented system > > with a > > > retry strategy built in. > > > > > > But just yesterday we discovered something interesting, if we connect > to > > > the region server in VisualVM and press the "Perform GC" button, there > > > seems to be a brief pause and then CPU settles down back to normal. > This > > is > > > despite the fact that memory appears to be under no pressure and before > > we > > > do this, VisualVM indicates very low percentage of CPU time spent in > GC, > > so > > > we're baffled, and hoping someone with deeper insight into the HBase > code > > > could explain this behavior. > > > > > > Our region server processes are configured with 32GB of RAM and the > > > following GC related JVM settings : > > > > > > HBASE_REGIONSERVER_OPTS=-Xms34359738368 -Xmx34359738368 -XX:+UseG1GC > > > -XX:MaxGCPauseMillis=100 > > > -XX:+ParallelRefProcEnabled -XX:-ResizePLAB -XX:ParallelGCThreads=14 > > > -XX:InitiatingHeapOccupancyPercent=70 > > > > > > Any insight anyone can provide would be most appreciated. > > > > > > ---- > > > Saad > > > --001a114694badbe8860549cd4722--