From dev-return-83978-apmail-geronimo-dev-archive=geronimo.apache.org@geronimo.apache.org Mon Jul 05 09:09:09 2010 Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 73042 invoked from network); 5 Jul 2010 09:09:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 09:09:09 -0000 Received: (qmail 71900 invoked by uid 500); 5 Jul 2010 09:09:09 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 71618 invoked by uid 500); 5 Jul 2010 09:09:06 -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 71610 invoked by uid 99); 5 Jul 2010 09:09:05 -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 09:09:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rwonly@gmail.com designates 74.125.83.182 as permitted sender) Received: from [74.125.83.182] (HELO mail-pv0-f182.google.com) (74.125.83.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 09:08:58 +0000 Received: by pvb32 with SMTP id 32so2281767pvb.13 for ; Mon, 05 Jul 2010 02:08:36 -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=bfLJTqVIJfX59VTOs9Y2R9fzlnzGe7Umz3RYhN4YTPM=; b=AOweMCdatnWaII0mB+uhcK1T5/HabcdzSkRQTQlNJ3Vu3/n4a9NMNmeqE5YvSHRHHa wUFD6yw7bm0+75es7xdf+RDnM5FZdLROR3yefqCCyhMg7l5UYHw+Gu1tDu3FnO7kBzoP j3mcAB1CXu4PSAy3m9hO0y8ROP7se0OuC3E7Q= 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=cdI3o3AB+zBmbL8H44+8wwsJh+0eQGLTEIXp9L1v5+A2t3joUwv58wgx0zibkNL+8P o6hOucTeMX2Gn5HkPfsyv0lxOXtghXuSb1wj2JXmkQAxek927Gjwj08bl+T1lDZD2kzc TRnMWimz9sptG0vj6QGaaO9P6NerarM35mT5Q= MIME-Version: 1.0 Received: by 10.142.134.7 with SMTP id h7mr2971998wfd.247.1278320916577; Mon, 05 Jul 2010 02:08:36 -0700 (PDT) Received: by 10.142.188.2 with HTTP; Mon, 5 Jul 2010 02:08:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Jul 2010 17:08:36 +0800 Message-ID: Subject: Re: Out of memory error when building geronimo From: Rex Wang To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=000e0cd32d96243cb9048aa048da X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd32d96243cb9048aa048da Content-Type: text/plain; charset=ISO-8859-1 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 --000e0cd32d96243cb9048aa048da Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable try another OPTs?..

JAVA_OPTS =A0 =A0 -Xms256m -Xmx1024m -XX:MaxPerm= Size=3D256m

2010/7/5 han hongfang <hanhongfang@gmail.c= om>
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=3D25= 6m
=A0
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=3D256m).
=A0
Then I issue the build command (i.e., mvn clean install) in the root d= ir of trunk, the build gets failed in serveral minutes with error msg indic= ates out of memory.
=A0
[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
=A0at java.util.ArrayList.newElementArray(Unknown Source)
=A0at java.util.ArrayList.growAtEnd(Unknown Source)
=A0at java.util.ArrayList.add(Unknown Source)
=A0.....
=A0
When I echo the environment variable again, but its value changes to &= quot;-Xmx512m".
=A0
Does somebody know what happened to=A0MAVEN_OPTS? Why=A0its value chan= ges after build command?
=A0
TIA.
--
Best regards,
=A0
Han Hong Fang
=A0



--
Lei Wang (Rex)
rwonl= y AT apache.org
--000e0cd32d96243cb9048aa048da--