Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 75108 invoked from network); 16 Apr 2009 16:38:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 16:38:02 -0000 Received: (qmail 29259 invoked by uid 500); 16 Apr 2009 16:38:02 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 29207 invoked by uid 500); 16 Apr 2009 16:38:01 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 29197 invoked by uid 99); 16 Apr 2009 16:38:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 16:38:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mcculls@gmail.com designates 209.85.200.172 as permitted sender) Received: from [209.85.200.172] (HELO wf-out-1314.google.com) (209.85.200.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 16:37:55 +0000 Received: by wf-out-1314.google.com with SMTP id 23so460798wfg.16 for ; Thu, 16 Apr 2009 09:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=0JqD9g9brT3SXuC4F8EF6rBAMpfJ6jQtgdw5RSbWijo=; b=nMtM5ZUwwk+NPTBg9Q2b/z0eGK3nxAlAQibidBwWjMWi29hMzZ/4q9nKelqeGcqwIV aFYJ5XK1jyrzYNeGCPZ5yNOwi1Lxbm7e80gGSKEZVUsBYkFG9e3nyNDryOPF2upp78x/ i+g2ysgQq5q5G9KxfPva4Y/rvyxEkjD8n7ePo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Aq+T6+x8SW8wzwOLaIU3bsdm3PGCVZkbg01fXBNepCp407Of9Iq4hXh+pGHlKy6qX0 I1Mz3bMMND55D0D7WqK60BmCb90PBdCsmGT/OrDiBbdBTe6o5Ykb2fn0btwvLWmQUaen XCCikw/bns7lN5Yj5XJMGobQIq5MJT+hJqtWs= MIME-Version: 1.0 Received: by 10.142.231.7 with SMTP id d7mr2474561wfh.285.1239899854659; Thu, 16 Apr 2009 09:37:34 -0700 (PDT) In-Reply-To: <49E75EAD.3080506@Sun.COM> References: <49E73952.3050308@Sun.COM> <81f0d9c0904160837m20bf2dbbpb2e666f58db15d06@mail.gmail.com> <49E75EAD.3080506@Sun.COM> Date: Fri, 17 Apr 2009 00:37:34 +0800 Message-ID: <81f0d9c0904160937v7d7ddabcha91b8f3b208c6586@mail.gmail.com> Subject: Re: OOM error while building latest trunk From: Stuart McCulloch To: dev@felix.apache.org Content-Type: multipart/alternative; boundary=000e0cd2e1dc64e2f90467aeaeb6 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2e1dc64e2f90467aeaeb6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/4/17 Sahoo > Stuart McCulloch wrote: > >> 2009/4/16 Sahoo >> >> >>> I consistently faced the following error while building latest trunk and >>> to >>> work around, I had to set MAVEN_OPTS=-Xmx512m in my environment. Is it >>> because there are just a lot of things getting built in the same reactor >>> requiring more memory? >>> >> >> I'd say that's very likely, also note that an OOM in PermGen means the JVM >> has exhausted >> its allocated space for class instances (ie. too many classes and/or proxy >> classes loaded). >> >> There's also an issue wrt. the default maximum heap - depending on which >> JDK >> release you >> use (and even the OS) this can vary from being ~64mb to being half of the >> physical memory. >> >> So setting your MAVEN_OPTS to a reasonably large maximum sounds reasonable >> to me >> if you want to build the whole project tree at once. >> >> > If the build does require higher than usual memory, should this not be set > in build.xml before execing mvn? > sure, if you can send me a patched build.xml that works for you I'd be happy to apply it Sahoo > -- Cheers, Stuart --000e0cd2e1dc64e2f90467aeaeb6--