Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5E0A974C for ; Thu, 14 Jun 2012 17:53:50 +0000 (UTC) Received: (qmail 95050 invoked by uid 500); 14 Jun 2012 17:53:49 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95005 invoked by uid 500); 14 Jun 2012 17:53: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 94990 invoked by uid 99); 14 Jun 2012 17:53:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 17:53:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saint.ack@gmail.com designates 209.85.217.169 as permitted sender) Received: from [209.85.217.169] (HELO mail-lb0-f169.google.com) (209.85.217.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 17:53:42 +0000 Received: by lbjn8 with SMTP id n8so2909747lbj.14 for ; Thu, 14 Jun 2012 10:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=6C+dWJbfYLwyc/4s94vtdX1RvP7FSLAa1QdsCTI/O1E=; b=sqqx3A1QjuTElzJgD2N2XMOp7levdRucfJ8iWSYDqpB/CZaNbR9BfYcPWnhbF2WRHN 0aLEuSGtB6knmfBEnv/HbMmWvAbayDTsZuyYn7i9Vds0AcYvDKKe+1gz44TezEpS+YND WRLMPmGZpcO7/ZWlBKR9sRVa8Ozv7tR09olzfw3Qkv1WgqdOxuXkUZhfEPYzp8VySGtQ JsifNj3C8vDpkEBFDk0C+Nmwd8HTYMWNL43xp5Z6Vwc1zpDTle2jdDuPzK1MRy3N5g54 ZpvlNtdOGIKTQOSvM+fbm59XvqK3rqpYKqI8X9ONlkf/GdcMT1EoGra3INeVqTqfku/F cVkw== MIME-Version: 1.0 Received: by 10.152.104.171 with SMTP id gf11mr2797915lab.5.1339696402255; Thu, 14 Jun 2012 10:53:22 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.112.55.12 with HTTP; Thu, 14 Jun 2012 10:53:22 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jun 2012 10:53:22 -0700 X-Google-Sender-Auth: x8V6Rf7lekXZgXI_uqi9eeoQAww Message-ID: Subject: Re: Controlling Region Server Heap usage From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 13, 2012 at 8:40 AM, Amit Sela wrote: > HBase configurations are: > hbase.regionserver.handler.count 18 > hbase.regionserver.global.memstore.upperLimit 0.5 > hbase.regionserver.global.memstore.lowerLimit 0.45 > hbase.server.thread.wakefrequency 500 > hbase.hregion.memstore.flush.size 268435456 (256MB) > hbase.hregion.memstore.block.multiplier 5 > hbase.hstore.blockingStoreFiles 12 > > As I understand things, when the heap usage of a Region Server reaches > the hbase.regionserver.global.memstore.upperLimit (5GB in this case), all > updates are blocked and all MemStores are flushed (until lowerLimit is > reached - 4.5GB in this case). > Yes. Look in the logs for the blocking message. > During massive writes to HBase I see some of the Region Servers constantly > (not just spikes) over 7GB and spiking to 9 from time to time. > > Why is That ? is there anything wrong with the configurations I used ? > Is there a better way to control the Region Server memory usage ? > Why are you worried about it? You have already allocated the 10G to the RS. Like a gas, the JVM will tend to grow to occupy the allocated space. Also remember that CMS runs sloppy and can be slow cleaning up trash. High level, the heap is divided between the memstore, block cache, and miscellaneous (handler threads, flushers and compactors, etc.). If you need more detail, dump the heap and open in a profiler. A profiler that can sort by deep-sizes will help you zero in on the big objects and allow you walk up their allocation tree. There's only a few roots in hbase (see above for a basic list). St.Ack