You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonar, Nishant" <ni...@wachovia.com> on 2007/10/26 12:57:14 UTC

heap space error

Hi 

 

When I am runnin my maven pom I get the following error?

 Don't kno the root cause 

 

I ran the command 

 

'mvn -e clean install -Dmaven.test.skip=true'

 

Does anybody can throw some light on this problem

 

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO]
------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Java heap space

[INFO]
------------------------------------------------------------------------

[INFO] Trace

java.lang.OutOfMemoryError: Java heap space

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 1 minute 59 seconds

[INFO] Finished at: Fri Oct 26 06:37:28 EDT 2007

[INFO] Final Memory: 4M/58M

[INFO]
------------------------------------------------------------------------

 

 

Regards,

Nishant 


RE: heap space error

Posted by ni...@planet.nl.
It seems that Java ran out of heap space. Generally not a good sign. What Java version and Maven version are you running? What kind of project are you trying to build? Multimodule, special plugins, etc?

With regards,

Nick Stolwijk


-----Original Message-----
From: Sonar, Nishant [mailto:nishant.sonar@wachovia.com]
Sent: Fri 10/26/2007 12:57 PM
To: Maven Users List
Subject: heap space error
 
Hi 

 

When I am runnin my maven pom I get the following error?

 Don't kno the root cause 

 

I ran the command 

 

'mvn -e clean install -Dmaven.test.skip=true'

 

Does anybody can throw some light on this problem

 

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO]
------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Java heap space

[INFO]
------------------------------------------------------------------------

[INFO] Trace

java.lang.OutOfMemoryError: Java heap space

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 1 minute 59 seconds

[INFO] Finished at: Fri Oct 26 06:37:28 EDT 2007

[INFO] Final Memory: 4M/58M

[INFO]
------------------------------------------------------------------------

 

 

Regards,

Nishant 



Re: heap space error

Posted by Alonso Isidoro Roman <al...@gmail.com>.
create MAVEN_OPTS system variable with :

-Xms512m -Xmx768m
 when 512 is initial memory and 768 is the max reachable..

>
> 2007/10/26, Sonar, Nishant < nishant.sonar@wachovia.com>:
> >
> > Hi
> >
> >
> >
> > When I am runnin my maven pom I get the following error?
> >
> > Don't kno the root cause
> >
> >
> >
> > I ran the command
> >
> >
> >
> > 'mvn -e clean install -Dmaven.test.skip=true'
> >
> >
> >
> > Does anybody can throw some light on this problem
> >
> >
> >
> > + Error stacktraces are turned on.
> >
> > [INFO] Scanning for projects...
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > [ERROR] FATAL ERROR
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Java heap space
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > [INFO] Trace
> >
> > java.lang.OutOfMemoryError: Java heap space
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > [INFO] Total time: 1 minute 59 seconds
> >
> > [INFO] Finished at: Fri Oct 26 06:37:28 EDT 2007
> >
> > [INFO] Final Memory: 4M/58M
> >
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> >
> >
> >
> > Regards,
> >
> > Nishant
> >
> >
>
>
> --
> Alonso Isidoro Roman.
>



-- 
Alonso Isidoro Roman.