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 C5028200BC4 for ; Fri, 4 Nov 2016 23:38:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C3BB0160AEA; Fri, 4 Nov 2016 22:38:00 +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 40D02160B07 for ; Fri, 4 Nov 2016 23:38:00 +0100 (CET) Received: (qmail 13755 invoked by uid 500); 4 Nov 2016 22:37:59 -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 13725 invoked by uid 99); 4 Nov 2016 22:37:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 22:37:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B7F3D2C2A69 for ; Fri, 4 Nov 2016 22:37:58 +0000 (UTC) Date: Fri, 4 Nov 2016 22:37:58 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17017) Remove the current per-region latency histogram metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 22:38:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15637925#comment-15637925 ] Enis Soztutar commented on HBASE-17017: --------------------------------------- I've run PE with 1000 regions in a single server: {code} bin/hbase pe --latency --nomapred --presplit=1000 --valueSize=1000 --rows=100000 sequentialWrite 30 {code} We are allocating ~1M LongAdder (former Counter) objects which is crazy. With a simple patch, the allocations goes down to less than 0.5% of heap so that JFR does not show it. The runtime for PE improves 17% because we are not spending time on this code path any more: {code} private LongAdder[] createCounters(int numBins) { return Stream.generate(LongAdder::new).limit(numBins + 3).toArray(LongAdder[]::new); } {code} See attached screenshots. > Remove the current per-region latency histogram metrics > ------------------------------------------------------- > > Key: HBASE-17017 > URL: https://issues.apache.org/jira/browse/HBASE-17017 > Project: HBase > Issue Type: Sub-task > Components: metrics > Affects Versions: 2.0.0, 1.4.0 > Reporter: Duo Zhang > Assignee: Enis Soztutar > Fix For: 2.0.0, 1.4.0 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)