You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sgg <sg...@ci.uchicago.edu> on 2009/07/02 16:47:22 UTC

java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

First time post.

* I am trying to build ServiceMix from source on my Mac (in preparation for
debugging SUs and SAs in Eclipse).
* I read the page on importing ServiceMix into eclipse [1].
* I downloaded apache-servicemix-3.3.1 src
* I ran: mvn -Dmaven.test.skip=true -P=step1
It took a while, built many things, but eventually died:

[INFO] [compiler:compile]
[INFO] Compiling 293 source files to
/Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
	at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
	at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
...

The software updates feature of the Mac indicated that the Java version is
latest (java version "1.5.0_19")

Is there a place somewhere within the Maven files to specify the min and max
heap size?

thanks in advance
sgg

[1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html
-- 
View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-Java-heap-space-installing-ServiceMix-src-on-Mac-tp24308094p24308094.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,

You can configure the amount of memory available to Maven during a
build by setting the MAVEN_OPTS environment variable as explained in
http://servicemix.apache.org/building.html.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/7/2 sgg <sg...@ci.uchicago.edu>:
>
> First time post.
>
> * I am trying to build ServiceMix from source on my Mac (in preparation for
> debugging SUs and SAs in Eclipse).
> * I read the page on importing ServiceMix into eclipse [1].
> * I downloaded apache-servicemix-3.3.1 src
> * I ran: mvn -Dmaven.test.skip=true -P=step1
> It took a while, built many things, but eventually died:
>
> [INFO] [compiler:compile]
> [INFO] Compiling 293 source files to
> /Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
>        at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
>        at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
> ...
>
> The software updates feature of the Mac indicated that the Java version is
> latest (java version "1.5.0_19")
>
> Is there a place somewhere within the Maven files to specify the min and max
> heap size?
>
> thanks in advance
> sgg
>
> [1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html
> --
> View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-Java-heap-space-installing-ServiceMix-src-on-Mac-tp24308094p24308094.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

Posted by Tom Howe <tu...@gmail.com>.
My apologies for this.

-Tom

On Thu, Jul 2, 2009 at 9:49 AM, Tom Howe <tu...@gmail.com> wrote:

> Steve.
>
> Just so you know, I'm on IM.  My AIM handle is turtlebender1.  I've dealt
> with many of these issues before, so feel free to ping me if you have
> questions.
>
> -Tom
>
>
> On Thu, Jul 2, 2009 at 9:47 AM, sgg <sg...@ci.uchicago.edu> wrote:
>
>>
>> First time post.
>>
>> * I am trying to build ServiceMix from source on my Mac (in preparation
>> for
>> debugging SUs and SAs in Eclipse).
>> * I read the page on importing ServiceMix into eclipse [1].
>> * I downloaded apache-servicemix-3.3.1 src
>> * I ran: mvn -Dmaven.test.skip=true -P=step1
>> It took a while, built many things, but eventually died:
>>
>> [INFO] [compiler:compile]
>> [INFO] Compiling 293 source files to
>>
>> /Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
>>        at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
>>        at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
>> ...
>>
>> The software updates feature of the Mac indicated that the Java version is
>> latest (java version "1.5.0_19")
>>
>> Is there a place somewhere within the Maven files to specify the min and
>> max
>> heap size?
>>
>> thanks in advance
>> sgg
>>
>> [1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html
>> --
>> View this message in context:
>> http://www.nabble.com/java.lang.OutOfMemoryError%3A-Java-heap-space-installing-ServiceMix-src-on-Mac-tp24308094p24308094.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Tom Howe
> Senior Software Engineer
> Distributed Systems Lab
> University of Chicago/Argonne National Laboratory
>



-- 
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory

Re: java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

Posted by Tom Howe <tu...@gmail.com>.
Steve.

Just so you know, I'm on IM.  My AIM handle is turtlebender1.  I've dealt
with many of these issues before, so feel free to ping me if you have
questions.

-Tom

On Thu, Jul 2, 2009 at 9:47 AM, sgg <sg...@ci.uchicago.edu> wrote:

>
> First time post.
>
> * I am trying to build ServiceMix from source on my Mac (in preparation for
> debugging SUs and SAs in Eclipse).
> * I read the page on importing ServiceMix into eclipse [1].
> * I downloaded apache-servicemix-3.3.1 src
> * I ran: mvn -Dmaven.test.skip=true -P=step1
> It took a while, built many things, but eventually died:
>
> [INFO] [compiler:compile]
> [INFO] Compiling 293 source files to
>
> /Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
>        at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
>        at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
> ...
>
> The software updates feature of the Mac indicated that the Java version is
> latest (java version "1.5.0_19")
>
> Is there a place somewhere within the Maven files to specify the min and
> max
> heap size?
>
> thanks in advance
> sgg
>
> [1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html
> --
> View this message in context:
> http://www.nabble.com/java.lang.OutOfMemoryError%3A-Java-heap-space-installing-ServiceMix-src-on-Mac-tp24308094p24308094.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Tom Howe
Senior Software Engineer
Distributed Systems Lab
University of Chicago/Argonne National Laboratory

Re: java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

Posted by Ivan Pryvalov <i....@smiss.com.ua>.
Hello,

did you try to use options JVM Xmx?

Truly yours,
Ivan Pryvalov.


sgg пишет:
> First time post.
> 
> * I am trying to build ServiceMix from source on my Mac (in preparation for
> debugging SUs and SAs in Eclipse).
> * I read the page on importing ServiceMix into eclipse [1].
> * I downloaded apache-servicemix-3.3.1 src
> * I ran: mvn -Dmaven.test.skip=true -P=step1
> It took a while, built many things, but eventually died:
> 
> [INFO] [compiler:compile]
> [INFO] Compiling 293 source files to
> /Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
> 	at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
> 	at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
> ...
> 
> The software updates feature of the Mac indicated that the Java version is
> latest (java version "1.5.0_19")
> 
> Is there a place somewhere within the Maven files to specify the min and max
> heap size?
> 
> thanks in advance
> sgg
> 
> [1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html


Re: java.lang.OutOfMemoryError: Java heap space installing ServiceMix src on Mac

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Have you defined a variable like this:
export MAVEN_OPTS=-Xmx768m

You can find more informations about building here:
http://servicemix.apache.org/building.html

Regards
JB

sgg wrote:
> First time post.
> 
> * I am trying to build ServiceMix from source on my Mac (in preparation for
> debugging SUs and SAs in Eclipse).
> * I read the page on importing ServiceMix into eclipse [1].
> * I downloaded apache-servicemix-3.3.1 src
> * I ran: mvn -Dmaven.test.skip=true -P=step1
> It took a while, built many things, but eventually died:
> 
> [INFO] [compiler:compile]
> [INFO] Compiling 293 source files to
> /Users/sggraham/apache-servicemix-3.3.1/src/core/servicemix-core/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
> 	at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
> 	at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
> ...
> 
> The software updates feature of the Mac indicated that the Java version is
> latest (java version "1.5.0_19")
> 
> Is there a place somewhere within the Maven files to specify the min and max
> heap size?
> 
> thanks in advance
> sgg
> 
> [1]http://servicemix.apache.org/importing-servicemix-into-eclipse.html