Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 96174 invoked from network); 12 Jan 2011 22:51:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 22:51:30 -0000 Received: (qmail 78079 invoked by uid 500); 12 Jan 2011 22:51:29 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 78041 invoked by uid 500); 12 Jan 2011 22:51:28 -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 78030 invoked by uid 99); 12 Jan 2011 22:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 22:51:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.169] (HELO mail-iw0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 22:51:24 +0000 Received: by iwn40 with SMTP id 40so1000213iwn.14 for ; Wed, 12 Jan 2011 14:51:02 -0800 (PST) Received: by 10.231.199.196 with SMTP id et4mr1678985ibb.71.1294872662268; Wed, 12 Jan 2011 14:51:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.115.8 with HTTP; Wed, 12 Jan 2011 14:50:42 -0800 (PST) In-Reply-To: References: <61DF20EF-BF0A-4160-B06F-A4E8B9745B6D@xebia.com> <4D2C88AB.4000706@mozilla.com> <6B358FAD-B718-4904-8DB4-7BBDA50F54D9@xebia.com> <85972BC7-7919-4978-9F33-5A1DAC2F21EC@gmail.com> <2BF42DA7-AEFB-40D9-B0A8-0C555F0941DE@xebia.com> <310F9349-EA38-405A-86B9-B4582939FD7F@xebia.com> From: Todd Lipcon Date: Wed, 12 Jan 2011 14:50:42 -0800 Message-ID: Subject: Re: Java Commited Virtual Memory significally larged then Heap Memory To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=90e6ba53a4f4105c2d0499ae09eb --90e6ba53a4f4105c2d0499ae09eb Content-Type: text/plain; charset=ISO-8859-1 Can someone who is having this issue try checking out the following git branch and rebuilding LZO? https://github.com/toddlipcon/hadoop-lzo/tree/realloc This definitely stems one leak of a 64KB directbuffer on every reinit. -Todd On Wed, Jan 12, 2011 at 2:12 PM, Todd Lipcon wrote: > Yea, you're definitely on the right track. Have you considered systems > programming, Friso? :) > > Hopefully should have a candidate patch to LZO later today. > > -Todd > > On Wed, Jan 12, 2011 at 1:20 PM, Friso van Vollenhoven < > fvanvollenhoven@xebia.com> wrote: > >> Hi, >> My guess is indeed that it has to do with using the reinit() method on >> compressors and making them long lived instead of throwaway together with >> the LZO implementation of reinit(), which magically causes NIO buffer >> objects not to be finalized and as a result not release their native >> allocations. It's just theory and I haven't had the time to properly verify >> this (unfortunately, I spend most of my time writing application code), but >> Todd said he will be looking into it further. I browsed the LZO code to see >> what was going on there, but with my limited knowledge of the HBase code it >> would be bald to say that this is for sure the case. It would be my first >> direction of investigation. I would add some logging to the LZO code where >> new direct byte buffers are created to log how often that happens and what >> size they are and then redo the workload that shows the leak. Together with >> some profiling you should be able to see how long it takes for these get >> finalized. >> >> Cheers, >> Friso >> >> >> >> On 12 jan 2011, at 20:08, Stack wrote: >> >> > 2011/1/12 Friso van Vollenhoven : >> >> No, I haven't. But the Hadoop (mapreduce) LZO compression is not the >> problem. Compressing the map output using LZO works just fine. The problem >> is HBase LZO compression. The region server process is the one with the >> memory leak... >> >> >> > >> > (Sorry for dumb question Friso) But HBase is leaking because we make >> > use of the Compression API in a manner that produces leaks? >> > Thanks, >> > St.Ack >> >> > > > -- > Todd Lipcon > Software Engineer, Cloudera > -- Todd Lipcon Software Engineer, Cloudera --90e6ba53a4f4105c2d0499ae09eb--