Java out of memory building 2.0 from source with maven?!
This belongs on the devo list, I guess, but I'm really just a user running a build to get the rest of the javadoc. Any hints on how to get around this? I have the current 1.5 JDK. [INFO] Compiling 1313 source files to C:\x\s\apache-cxf-2.0-incubator-src\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
RE: Java out of memory building 2.0 from source with maven?!
Hi benson, You would have to set MAVEN_OPTS=-Xmx256m to get the java compiler to compile that many source files. I don't know if this is documented but it needs to be... - Balaji -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 8:50 AM To: cxf-user@incubator.apache.org Subject: Java out of memory building 2.0 from source with maven?! This belongs on the devo list, I guess, but I'm really just a user running a build to get the rest of the javadoc. Any hints on how to get around this? I have the current 1.5 JDK. [INFO] Compiling 1313 source files to C:\x\s\apache-cxf-2.0-incubator-src\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
RE: Java out of memory building 2.0 from source with maven?!
This is a common issue of the wsdl2java maven plugin, if you wsdl is very large , the out of memory exception will be thrown. Please try this export MAVEN_OPTS=-Xmx512M Cheers, Willem. -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Thu 7/12/2007 20:49 To: cxf-user@incubator.apache.org Subject: Java out of memory building 2.0 from source with maven?! This belongs on the devo list, I guess, but I'm really just a user running a build to get the rest of the javadoc. Any hints on how to get around this? I have the current 1.5 JDK. [INFO] Compiling 1313 source files to C:\x\s\apache-cxf-2.0-incubator-src\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
Re: Java out of memory building 2.0 from source with maven?!
One other note: If you're on a 64bit platform, you'll probably also need to set the MaxPermSize option. My MAVEN_OPTS setting is: MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512M Dan On Thursday 12 July 2007 08:54, Mosur Ravi, Balaji wrote: > Hi benson, > > You would have to set MAVEN_OPTS=-Xmx256m to get the java compiler to > compile that many source files. I don't know if this is documented but > it needs to be... > > - Balaji > > -Original Message- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 8:50 AM > To: cxf-user@incubator.apache.org > Subject: Java out of memory building 2.0 from source with maven?! > > This belongs on the devo list, I guess, but I'm really just a user > running a build to get the rest of the javadoc. Any hints on how to > get around this? I have the current 1.5 JDK. > > > > > > [INFO] Compiling 1313 source files to > C:\x\s\apache-cxf-2.0-incubator-src\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 -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
RE: Java out of memory building 2.0 from source with maven?!
That did fix it. > -Original Message- > From: Jiang, Ning (Willem) [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 9:28 AM > To: cxf-user@incubator.apache.org > Subject: RE: Java out of memory building 2.0 from source with maven?! > > This is a common issue of the wsdl2java maven plugin, > if you wsdl is very large , the out of memory exception will be thrown. > > Please try this > > export MAVEN_OPTS=-Xmx512M > > Cheers, > > Willem. > > -Original Message- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Thu 7/12/2007 20:49 > To: cxf-user@incubator.apache.org > Subject: Java out of memory building 2.0 from source with maven?! > > This belongs on the devo list, I guess, but I'm really just a user > running a build to get the rest of the javadoc. Any hints on how to get > around this? I have the current 1.5 JDK. > > > > > > [INFO] Compiling 1313 source files to > C:\x\s\apache-cxf-2.0-incubator-src\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 > >