You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Mielke, Torsten" <to...@iona.com> on 2007/04/24 12:16:13 UTC

Maven build error

Hello,

When trying to build CXF off the latest trunk I often get the following
error below [1]. How can I configure Maven to assign more heap to the
Java compiler?

Cheers,
Torsten Mielke

 
[1] build error.
[INFO] [compiler:compile]
[INFO] Compiling 1227 source files to
C:\CXF\trunk\testutils\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[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: Java heap space
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: Java heap space
[INFO]
--------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
---------------------------------------------------------------------
[INFO] Total time: 6 minutes 37 seconds
[INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
[INFO] Final Memory: 48M/63M
[INFO]
---------------------------------------------------------------------



Re: Maven build error

Posted by Bozhong Lin <bl...@iona.com>.
Set MAVEN_OPTS=-Xmx512M

Cheers,
Bo

Mielke, Torsten wrote:
> Hello,
>
> When trying to build CXF off the latest trunk I often get the following
> error below [1]. How can I configure Maven to assign more heap to the
> Java compiler?
>
> Cheers,
> Torsten Mielke
>
>  
> [1] build error.
> [INFO] [compiler:compile]
> [INFO] Compiling 1227 source files to
> C:\CXF\trunk\testutils\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [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: Java heap space
> 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: Java heap space
> [INFO]
> --------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ---------------------------------------------------------------------
> [INFO] Total time: 6 minutes 37 seconds
> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> [INFO] Final Memory: 48M/63M
> [INFO]
> ---------------------------------------------------------------------
>
>
>   

Re: Maven build error

Posted by James Mao <ja...@iona.com>.
set MAVEN_OPTS=-Xmx512M

> Hello,
>
> When trying to build CXF off the latest trunk I often get the following
> error below [1]. How can I configure Maven to assign more heap to the
> Java compiler?
>
> Cheers,
> Torsten Mielke
>
>  
> [1] build error.
> [INFO] [compiler:compile]
> [INFO] Compiling 1227 source files to
> C:\CXF\trunk\testutils\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [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: Java heap space
> 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: Java heap space
> [INFO]
> --------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ---------------------------------------------------------------------
> [INFO] Total time: 6 minutes 37 seconds
> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> [INFO] Final Memory: 48M/63M
> [INFO]
> ---------------------------------------------------------------------
>
>
>
>   


Re: Maven build error

Posted by Fred Dushin <fr...@dushin.net>.
Thanks.  I'll try to take more initiative next time.

And thanks, DanK, for the change.

-Fred

On Apr 24, 2007, at 1:02 PM, Dan Diephouse wrote:

> Anyone can edit it, you just need to go to Confluence:
> http://cwiki.apache.org/confluence/display/CXF
>
> Cheers,
> - Dan
>
> On 4/24/07, Fred Dushin <fr...@dushin.net> wrote:
>>
>> Great stuff.
>>
>> Is there an appropriate slot in the CXF wiki for this?
>>
>> Do mere mortals have the right to edit the CXF wiki?
>>
>> Thanks,
>> -Fred
>>
>> On Apr 24, 2007, at 10:53 AM, Daniel Kulp wrote:
>>
>> >
>> > A bunch of folks already chimed in with the Xmx512M thing.
>> > However, I
>> > should mention one other thing for the folks out there using a real
>> > OS...  ;-)
>> >
>> > On 64bit platforms (I know both Linux and Solaris need this, don't
>> > know
>> > about 64bit Wintendo), you also need to increase the PermGen
>> > space.   On
>> > my box (64bit Linux), I have:
>> >
>> > export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx512M"
>> >
>> > You probably just need 128M for the MaxPermSize.    I'm building
>> > Geronimo
>> > on a almost daily basis right now and that sucker eats a TON of  
>> memory
>> > which is why it's set to 192M for me.
>> >
>> >
>> > Enjoy!
>> > Dan
>> >
>> >
>> >
>> > On Tuesday 24 April 2007 06:16, Mielke, Torsten wrote:
>> >> Hello,
>> >>
>> >> When trying to build CXF off the latest trunk I often get the
>> >> following error below [1]. How can I configure Maven to assign  
>> more
>> >> heap to the Java compiler?
>> >>
>> >> Cheers,
>> >> Torsten Mielke
>> >>
>> >>
>> >> [1] build error.
>> >> [INFO] [compiler:compile]
>> >> [INFO] Compiling 1227 source files to
>> >> C:\CXF\trunk\testutils\target\classes
>> >> [INFO]
>> >>  
>> ---------------------------------------------------------------------
>> >> -
>> >> -- [ERROR] BUILD FAILURE
>> >> [INFO]
>> >>  
>> ---------------------------------------------------------------------
>> >> -
>> >> -- [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: Java heap space
>> >> 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: Java heap space
>> >> [INFO]
>> >>  
>> --------------------------------------------------------------------
>> >> [INFO] For more information, run Maven with the -e switch
>> >> [INFO]
>> >>  
>> ---------------------------------------------------------------------
>> >> [INFO] Total time: 6 minutes 37 seconds
>> >> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
>> >> [INFO] Final Memory: 48M/63M
>> >> [INFO]
>> >>  
>> ---------------------------------------------------------------------
>> >
>> > --
>> > J. Daniel Kulp
>> > Principal Engineer
>> > IONA
>> > P: 781-902-8727    C: 508-380-7194
>> > daniel.kulp@iona.com
>> > http://www.dankulp.com/blog
>> >
>>
>>
>
>
> -- 
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog


Re: Maven build error

Posted by Dan Diephouse <da...@envoisolutions.com>.
Anyone can edit it, you just need to go to Confluence:
http://cwiki.apache.org/confluence/display/CXF

Cheers,
- Dan

On 4/24/07, Fred Dushin <fr...@dushin.net> wrote:
>
> Great stuff.
>
> Is there an appropriate slot in the CXF wiki for this?
>
> Do mere mortals have the right to edit the CXF wiki?
>
> Thanks,
> -Fred
>
> On Apr 24, 2007, at 10:53 AM, Daniel Kulp wrote:
>
> >
> > A bunch of folks already chimed in with the Xmx512M thing.
> > However, I
> > should mention one other thing for the folks out there using a real
> > OS...  ;-)
> >
> > On 64bit platforms (I know both Linux and Solaris need this, don't
> > know
> > about 64bit Wintendo), you also need to increase the PermGen
> > space.   On
> > my box (64bit Linux), I have:
> >
> > export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx512M"
> >
> > You probably just need 128M for the MaxPermSize.    I'm building
> > Geronimo
> > on a almost daily basis right now and that sucker eats a TON of memory
> > which is why it's set to 192M for me.
> >
> >
> > Enjoy!
> > Dan
> >
> >
> >
> > On Tuesday 24 April 2007 06:16, Mielke, Torsten wrote:
> >> Hello,
> >>
> >> When trying to build CXF off the latest trunk I often get the
> >> following error below [1]. How can I configure Maven to assign more
> >> heap to the Java compiler?
> >>
> >> Cheers,
> >> Torsten Mielke
> >>
> >>
> >> [1] build error.
> >> [INFO] [compiler:compile]
> >> [INFO] Compiling 1227 source files to
> >> C:\CXF\trunk\testutils\target\classes
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -
> >> -- [ERROR] BUILD FAILURE
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -
> >> -- [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: Java heap space
> >> 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: Java heap space
> >> [INFO]
> >> --------------------------------------------------------------------
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> [INFO] Total time: 6 minutes 37 seconds
> >> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> >> [INFO] Final Memory: 48M/63M
> >> [INFO]
> >> ---------------------------------------------------------------------
> >
> > --
> > J. Daniel Kulp
> > Principal Engineer
> > IONA
> > P: 781-902-8727    C: 508-380-7194
> > daniel.kulp@iona.com
> > http://www.dankulp.com/blog
> >
>
>


-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Re: Maven build error

Posted by Daniel Kulp <dk...@apache.org>.
I added it to:
http://cwiki.apache.org/confluence/display/CXF/Building

Dan



On Tuesday 24 April 2007 12:39, Fred Dushin wrote:
> Great stuff.
>
> Is there an appropriate slot in the CXF wiki for this?
>
> Do mere mortals have the right to edit the CXF wiki?
>
> Thanks,
> -Fred
>
> On Apr 24, 2007, at 10:53 AM, Daniel Kulp wrote:
> > A bunch of folks already chimed in with the Xmx512M thing.
> > However, I
> > should mention one other thing for the folks out there using a real
> > OS...  ;-)
> >
> > On 64bit platforms (I know both Linux and Solaris need this, don't
> > know
> > about 64bit Wintendo), you also need to increase the PermGen
> > space.   On
> > my box (64bit Linux), I have:
> >
> > export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx512M"
> >
> > You probably just need 128M for the MaxPermSize.    I'm building
> > Geronimo
> > on a almost daily basis right now and that sucker eats a TON of
> > memory which is why it's set to 192M for me.
> >
> >
> > Enjoy!
> > Dan
> >
> > On Tuesday 24 April 2007 06:16, Mielke, Torsten wrote:
> >> Hello,
> >>
> >> When trying to build CXF off the latest trunk I often get the
> >> following error below [1]. How can I configure Maven to assign more
> >> heap to the Java compiler?
> >>
> >> Cheers,
> >> Torsten Mielke
> >>
> >>
> >> [1] build error.
> >> [INFO] [compiler:compile]
> >> [INFO] Compiling 1227 source files to
> >> C:\CXF\trunk\testutils\target\classes
> >> [INFO]
> >> -------------------------------------------------------------------
> >>-- -
> >> -- [ERROR] BUILD FAILURE
> >> [INFO]
> >> -------------------------------------------------------------------
> >>-- -
> >> -- [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: Java heap space
> >> 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: Java heap space
> >> [INFO]
> >> -------------------------------------------------------------------
> >>- [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> -------------------------------------------------------------------
> >>-- [INFO] Total time: 6 minutes 37 seconds
> >> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> >> [INFO] Final Memory: 48M/63M
> >> [INFO]
> >> -------------------------------------------------------------------
> >>--
> >
> > --
> > J. Daniel Kulp
> > Principal Engineer
> > IONA
> > P: 781-902-8727    C: 508-380-7194
> > daniel.kulp@iona.com
> > http://www.dankulp.com/blog

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Maven build error

Posted by Fred Dushin <fr...@dushin.net>.
Great stuff.

Is there an appropriate slot in the CXF wiki for this?

Do mere mortals have the right to edit the CXF wiki?

Thanks,
-Fred

On Apr 24, 2007, at 10:53 AM, Daniel Kulp wrote:

>
> A bunch of folks already chimed in with the Xmx512M thing.     
> However, I
> should mention one other thing for the folks out there using a real
> OS...  ;-)
>
> On 64bit platforms (I know both Linux and Solaris need this, don't  
> know
> about 64bit Wintendo), you also need to increase the PermGen  
> space.   On
> my box (64bit Linux), I have:
>
> export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx512M"
>
> You probably just need 128M for the MaxPermSize.    I'm building  
> Geronimo
> on a almost daily basis right now and that sucker eats a TON of memory
> which is why it's set to 192M for me.
>
>
> Enjoy!
> Dan
>
>
>
> On Tuesday 24 April 2007 06:16, Mielke, Torsten wrote:
>> Hello,
>>
>> When trying to build CXF off the latest trunk I often get the
>> following error below [1]. How can I configure Maven to assign more
>> heap to the Java compiler?
>>
>> Cheers,
>> Torsten Mielke
>>
>>
>> [1] build error.
>> [INFO] [compiler:compile]
>> [INFO] Compiling 1227 source files to
>> C:\CXF\trunk\testutils\target\classes
>> [INFO]
>> --------------------------------------------------------------------- 
>> -
>> -- [ERROR] BUILD FAILURE
>> [INFO]
>> --------------------------------------------------------------------- 
>> -
>> -- [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: Java heap space
>> 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: Java heap space
>> [INFO]
>> --------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ---------------------------------------------------------------------
>> [INFO] Total time: 6 minutes 37 seconds
>> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
>> [INFO] Final Memory: 48M/63M
>> [INFO]
>> ---------------------------------------------------------------------
>
> -- 
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog
>


Re: Maven build error

Posted by Daniel Kulp <dk...@apache.org>.
A bunch of folks already chimed in with the Xmx512M thing.    However, I 
should mention one other thing for the folks out there using a real 
OS...  ;-)

On 64bit platforms (I know both Linux and Solaris need this, don't know 
about 64bit Wintendo), you also need to increase the PermGen space.   On 
my box (64bit Linux), I have:

export MAVEN_OPTS="-XX:MaxPermSize=192m -Xmx512M"

You probably just need 128M for the MaxPermSize.    I'm building Geronimo 
on a almost daily basis right now and that sucker eats a TON of memory 
which is why it's set to 192M for me.


Enjoy!
Dan



On Tuesday 24 April 2007 06:16, Mielke, Torsten wrote:
> Hello,
>
> When trying to build CXF off the latest trunk I often get the
> following error below [1]. How can I configure Maven to assign more
> heap to the Java compiler?
>
> Cheers,
> Torsten Mielke
>
>
> [1] build error.
> [INFO] [compiler:compile]
> [INFO] Compiling 1227 source files to
> C:\CXF\trunk\testutils\target\classes
> [INFO]
> ----------------------------------------------------------------------
>-- [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
>-- [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: Java heap space
> 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: Java heap space
> [INFO]
> --------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ---------------------------------------------------------------------
> [INFO] Total time: 6 minutes 37 seconds
> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> [INFO] Final Memory: 48M/63M
> [INFO]
> ---------------------------------------------------------------------

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Maven build error

Posted by Willem Jiang <ni...@iona.com>.
Hi Torsten

You can set the  MAVEN_OPT  to "-Xmx512m" to solve this problem :).

Willem.

Mielke, Torsten wrote:
> Hello,
>
> When trying to build CXF off the latest trunk I often get the following
> error below [1]. How can I configure Maven to assign more heap to the
> Java compiler?
>
> Cheers,
> Torsten Mielke
>
>  
> [1] build error.
> [INFO] [compiler:compile]
> [INFO] Compiling 1227 source files to
> C:\CXF\trunk\testutils\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [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: Java heap space
> 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: Java heap space
> [INFO]
> --------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ---------------------------------------------------------------------
> [INFO] Total time: 6 minutes 37 seconds
> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
> [INFO] Final Memory: 48M/63M
> [INFO]
> ---------------------------------------------------------------------
>
>
>
>
>   



RE: Maven build error

Posted by "Tully, Gary" <Ga...@iona.com>.
set MAVEN_OPTS=-Xmx512M

Gary. 

> -----Original Message-----
> From: Mielke, Torsten [mailto:torsten.mielke@iona.com] 
> Sent: 24 April 2007 11:16
> To: cxf-user@incubator.apache.org
> Subject: Maven build error
> 
> Hello,
> 
> When trying to build CXF off the latest trunk I often get the 
> following error below [1]. How can I configure Maven to 
> assign more heap to the Java compiler?
> 
> Cheers,
> Torsten Mielke
> 
>  
> [1] build error.
> [INFO] [compiler:compile]
> [INFO] Compiling 1227 source files to
> C:\CXF\trunk\testutils\target\classes
> [INFO]
> --------------------------------------------------------------
> ----------
> [ERROR] BUILD FAILURE
> [INFO]
> --------------------------------------------------------------
> ----------
> [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: Java heap space 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: Java heap space [INFO]
> --------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch [INFO]
> ---------------------------------------------------------------------
> [INFO] Total time: 6 minutes 37 seconds
> [INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007 [INFO] 
> Final Memory: 48M/63M [INFO]
> ---------------------------------------------------------------------
> 
> 
> 

RE: Maven build error

Posted by "Roelofsen, Roman" <Ro...@iona.com>.
Hi,

try using this command. It's working fine on my machine:

mvn -DXms512M .....

Cheers,

		Roman


-----Original Message-----
From: Mielke, Torsten [mailto:torsten.mielke@iona.com]
Sent: 24 April 2007 11:16
To: cxf-user@incubator.apache.org
Subject: Maven build error


Hello,

When trying to build CXF off the latest trunk I often get the following
error below [1]. How can I configure Maven to assign more heap to the
Java compiler?

Cheers,
Torsten Mielke

 
[1] build error.
[INFO] [compiler:compile]
[INFO] Compiling 1227 source files to
C:\CXF\trunk\testutils\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[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: Java heap space
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: Java heap space
[INFO]
--------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
---------------------------------------------------------------------
[INFO] Total time: 6 minutes 37 seconds
[INFO] Finished at: Thu Apr 19 17:01:39 CEST 2007
[INFO] Final Memory: 48M/63M
[INFO]
---------------------------------------------------------------------