Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 72971 invoked from network); 5 Jul 2010 15:15:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 15:15:11 -0000 Received: (qmail 70206 invoked by uid 500); 5 Jul 2010 15:15:11 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 70115 invoked by uid 500); 5 Jul 2010 15:15:10 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 70108 invoked by uid 99); 5 Jul 2010 15:15:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 15:15:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hanhongfang@gmail.com designates 209.85.161.182 as permitted sender) Received: from [209.85.161.182] (HELO mail-gx0-f182.google.com) (209.85.161.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 15:15:03 +0000 Received: by gxk24 with SMTP id 24so422965gxk.13 for ; Mon, 05 Jul 2010 08:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=N2DKDkT8eDyipV8l1qBZrq7sv2j16sNAND/avQAWasY=; b=Ih22eri6nDpOHUcsWcYGhOJkUhDd1stFSTqC1QAQFz7wSkR2Pz87VtWtKufy9s0Dj0 R/DL5TlVGvbcZOgFC5PJKP2rm3cK/KV9pF8B3FLv3WD6eG0Ug0meAQLe5x/QEDNyDL1e 2ydsoj2BMS2wPuOKqBGqQVvAjfW2oI9a671SY= 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=wCjm8T4MJ2h0tc6YPDHVIbInQZx8cGAUN5K2pSjVAE4JjVWbxeXnwIhTmPoMJLUeq5 CvfYqXvKCqmZH0pttgrAj7yssZU5ODRRi0bhiuR9nElkcRCtqgNL/2elXLZzaWCqSnKT vHxOINk5rA7oRqRGFpiIyQKwIpJcDHki/IiLQ= MIME-Version: 1.0 Received: by 10.101.180.1 with SMTP id h1mr3915091anp.45.1278342832060; Mon, 05 Jul 2010 08:13:52 -0700 (PDT) Received: by 10.100.46.9 with HTTP; Mon, 5 Jul 2010 08:13:52 -0700 (PDT) In-Reply-To: <244119.35301.qm@web27801.mail.ukl.yahoo.com> References: <244119.35301.qm@web27801.mail.ukl.yahoo.com> Date: Mon, 5 Jul 2010 23:13:52 +0800 Message-ID: Subject: Re: Out of memory error when building geronimo From: han hongfang To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=001636c9287567fb49048aa562b0 X-Virus-Checked: Checked by ClamAV on apache.org --001636c9287567fb49048aa562b0 Content-Type: text/plain; charset=ISO-8859-1 Thanks Rex. But the same error occur. Upgrading -Xmx and -XX:MaxPermSize may solve the out of memory problem, but the point is the environment variable MAVEN_OPTS got changed (from "-Xmx1024m -XX:MaxPermSize=256m" to "-Xmx512m") during geronimo build, and my setting doesn't take effect to solve the out of memory. Is MAVEN_OPTS reset somewhere when building geronimo? On Mon, Jul 5, 2010 at 5:38 PM, Mark Struberg wrote: > same here, upgrading to PermGenSpace of 512m did help. > > But currently the build still fails while building the tomcat7 integration: > > [org.apache.geronimo.system.configuration.DependencyManager] : Could not > start bundle: org.apache.geronimo.configs.tomcat7 [68] > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.geronimo.configs.tomcat7 [68]: Unable to resolve 68.0: missing > requirement [68.0] package; (package=org.apache.geronimo.tomcat) - [68.0] > package; (package=org.apache.geronimo.tomcat) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1754) > > LieGrue, > strub > > > --- On Mon, 7/5/10, Rex Wang wrote: > > From: Rex Wang > Subject: Re: Out of memory error when building geronimo > To: dev@geronimo.apache.org > Date: Monday, July 5, 2010, 9:08 AM > > try another OPTs?.. > > JAVA_OPTS -Xms256m -Xmx1024m -XX:MaxPermSize=256m > > 2010/7/5 han hongfang > > > Hi, > > I'm trying to build geronimo server trunk with sun jdk 1.6.0_20 on my > winXP. I have this environment variable set. > > MAVEN_OPTS = -Xmx1024m -XX:MaxPermSize=256m > > Before issue the build command, I echo this variable in command prompt > window, and I can see the value is exactly what I have set (-Xmx1024m > -XX:MaxPermSize=256m). > > Then I issue the build command (i.e., mvn clean install) in the root dir of > trunk, the build gets failed in serveral minutes with error msg indicates > out of memory. > > > [INFO] Compilation failure > Failure executing javac, but could not parse the error: > > The system is out of resources. > Consult the following stack trace for details. > java.lang.OutOfMemoryError > at java.util.ArrayList.newElementArray(Unknown Source) > at java.util.ArrayList.growAtEnd(Unknown Source) > at java.util.ArrayList.add(Unknown Source) > ..... > > When I echo the environment variable again, but its value changes to > "-Xmx512m". > > Does somebody know what happened to MAVEN_OPTS? Why its value changes after > build command? > > TIA. > > -- > Best regards, > > Han Hong Fang > > > > > -- > Lei Wang (Rex) > rwonly AT apache.org > > > > > > -- Best regards, Han Hong Fang --001636c9287567fb49048aa562b0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Rex. But the same error occur.
=A0
Upgrading -Xmx and -XX:MaxPermSize may solve the out of memory problem= , but the=A0point is the environment variable MAVEN_OPTS got changed (from = "-Xmx1024m -XX:MaxPermSize=3D256m" to "-Xmx512m") durin= g geronimo build, and my setting doesn't take effect to solve the out o= f memory.
=A0
Is MAVEN_OPTS reset somewhere when building geronimo?

On Mon, Jul 5, 2010 at 5:38 PM, Mark Struberg <struberg@yahoo.de<= /a>> wrote:
same here, upgrading to PermGenS= pace of 512m did help.

But currently the build still fails while bui= lding the tomcat7 integration:

[org.apache.geronimo.system.configuration.DependencyManager] : Could no= t start bundle: org.apache.geronimo.configs.tomcat7 [68]
org.osgi.framew= ork.BundleException: Unresolved constraint in bundle org.apache.geronimo.co= nfigs.tomcat7 [68]: Unable to resolve 68.0: missing requirement [68.0] pack= age; (package=3Dorg.apache.geronimo.tomcat) - [68.0] package; (package=3Dor= g.apache.geronimo.tomcat)
=A0 =A0 =A0 =A0at org.apache.felix.framework.Felix.resolveBundle(Felix.java= :3421)
=A0 =A0 =A0 =A0at org.apache.felix.framework.Felix.startBundle(Fe= lix.java:1754)

LieGrue,
strub


--- On Mon, 7/5/10, Rex = Wang <
rwonly@gmail.com> wrote= :

From: Rex Wang <rwonly@gmail.com= >
Subject: Re: Out of memory error when building geronimo
To: = dev@geronimo.apache.org
D= ate: Monday, July 5, 2010, 9:08 AM

try another OPTs?..

JAVA_OPTS =A0 =A0 -Xms256m= -Xmx1024m -XX:MaxPermSize=3D256m

2010/7/5 han hongfang <hanhongfang@gmail.com>


= Hi,
=A0
I'm trying to build geronimo server trunk with sun jdk 1.6.0_20 = on my winXP. I have this environment variable set.
=A0
=A0=A0=A0=A0= =A0=A0=A0=A0 MAVEN_OPTS =3D -Xmx1024m -XX:MaxPermSize=3D256m
=A0
Befo= re issue the build command, I echo this variable in command prompt window, = and I can see the value is exactly what I have set (-Xmx1024m -XX:MaxPermSi= ze=3D256m).
=A0
Then I issue the build command (i.e., mvn clean install) in the root= dir of trunk, the build gets failed in serveral minutes with error msg ind= icates out of memory.
=A0

[INFO] Compilation failure
Failure e= xecuting javac, but could not parse the error:

The system is out of resources.
Consult the following stack trace fo= r details.
java.lang.OutOfMemoryError
=A0at java.util.ArrayList.newEl= ementArray(Unknown Source)
=A0at java.util.ArrayList.growAtEnd(Unknown S= ource)
=A0at java.util.ArrayList.add(Unknown Source)
=A0.....
=A0
When I = echo the environment variable again, but its value changes to "-Xmx512= m".
=A0
Does somebody know what happened to=A0MAVEN_OPTS? Why=A0= its value changes after build command?
=A0
TIA.

--
Best regards,
=A0
Han Hong Fang
=A0


--
Lei Wang (Rex)
rwonly AT apache.org








--
Best regards,

Han Hong Fang --001636c9287567fb49048aa562b0--