Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 75037 invoked from network); 17 May 2007 14:25:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 14:25:09 -0000 Received: (qmail 13330 invoked by uid 500); 17 May 2007 14:25:12 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 13305 invoked by uid 500); 17 May 2007 14:25:12 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 13296 invoked by uid 99); 17 May 2007 14:25:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 07:25:12 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zhanghuangzhu@gmail.com designates 209.85.132.251 as permitted sender) Received: from [209.85.132.251] (HELO an-out-0708.google.com) (209.85.132.251) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 07:25:05 -0700 Received: by an-out-0708.google.com with SMTP id b33so191017ana for ; Thu, 17 May 2007 07:24:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=T0M41l10qecEewJpbDEDvGXzdPPbzeSMSjxYMkApyhFAO8dP5l/o+6l/asZvrbpzinewjFUem1+RE4EzkdM029+LPmFLd4Be8arPob8txFFTbX7PQVdly1E135zBtsz8vz2hP+cYSP/n00AFSmU+NUL8Jd5ErOHpLRzTeefgJ0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=T5hAvd5F+rWVztSvDjilwFJ6PHatOSsstn7ZVvTtsE2TSPyRDOoMdyT7ZIhhMZcNN8e9n6uGqtljbDZUZ8gzBltbYE+sr7WoMvyIB3z97gYcezuiYdWsHxVgPJQAr3f1nqFRzbUbbT5Lf5JT848Il4sUSavf2EEv/OLsDC5H3Hg= Received: by 10.100.42.7 with SMTP id p7mr328019anp.1179411885250; Thu, 17 May 2007 07:24:45 -0700 (PDT) Received: by 10.100.194.20 with HTTP; Thu, 17 May 2007 07:24:45 -0700 (PDT) Message-ID: <4d0b24970705170724n5e9ce43ev3522f812072dadb8@mail.gmail.com> Date: Thu, 17 May 2007 22:24:45 +0800 From: "Andrew Zhang" To: dev@harmony.apache.org Subject: Re: [classlib] H-3148 (OOM when using native memory which is out of GC-control) again In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42863_23713718.1179411885126" References: <51abf0750705140922r41c0307dw56d79cb0706010aa@mail.gmail.com> <4d0b24970705160917j606f5607m950616b2a0ffd75a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42863_23713718.1179411885126 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/17/07, Leo Li wrote: > > It might be too late when error occurs. Since GC is not in-place, when > java > runs out of memory, the GC itself may cannot work. Thanks Leo, now I see. And I'm also looking forward to seeing the ultimate fix by gc guys. :) On 5/17/07, Andrew Zhang wrote: > > > > On 5/15/07, Mikhail Markov wrote: > > > > > > Hi, all! > > > > > > I'd like to raise the problem with freeing native memory which is out > of > > > GC > > > control again :-) (and > > https://issues.apache.org/jira/browse/HARMONY-3148as > > > one of it's demonstration). > > > (See the previous round at > > > http://thread.gmane.org/gmane.comp.java.harmony.devel/25768). > > > > > > Several people have added comments to the JIRA, but we need a general > > > decision on the following question: > > > > > > Do we accept the way which was introduced by Leo's patch in H-3148 ( > i.e. > > > check if there are enough native memory available before allocating > new > > > one, > > > and call System.gc() (or System.runFinalization()) if necessary)? > > > > > > I'm +1 for this method. > > > > > > Hi, > > > > I'm not sure whether I understand the problem correctly, but is it > > possible > > that vm onlys invokes gc when it fails to allocate, instead of checking > > native memory every time before allocation which would may cause > > performance > > downgrade? > > > > (Mark mentioned that he'd refactored the patch if he had time:-) - i'm > > ready > > > to do this if he has no time.) > > > > > > Thanks, > > > Mikhail > > > > > > > > > > > -- > > Best regards, > > Andrew Zhang > > > > http://zhanghuangzhu.blogspot.com/ > > > > > > -- > Leo Li > China Software Development Lab, IBM > -- Best regards, Andrew Zhang http://zhanghuangzhu.blogspot.com/ ------=_Part_42863_23713718.1179411885126--