heap space error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

heap space error

Sonar, Nishant
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

Reply | Threaded
Open this post in threaded view
|

RE: heap space error

Nick Stolwijk-3
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:[hidden email]]
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


Reply | Threaded
Open this post in threaded view
|

Re: heap space error

AlonsoIR
In reply to this post by Sonar, Nishant
create MAVEN_OPTS system variable with :

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

>
> 2007/10/26, Sonar, Nishant < [hidden email]>:
> >
> > 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.