Hi all,
When i run the mvn clean install -e command , it is getting the following error:
java.lang.OutOfMemoryError: PermGen space maven
Could anybody please guide to solve this problem .
Regards,
Sam
Yes, set your maven_opts to raise the memory for your java process.
ie.
export MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Wed, Apr 1, 2009 at 4:51 PM, SRINIVASA RAO
srinivasv_amb...@yahoo.com
, April 01, 2009 10:51 AM
To: users@maven.apache.org
Subject: java.lang.OutOfMemoryError: PermGen space problem
Hi all,
When i run the mvn clean install -e command , it is getting the following error:
java.lang.OutOfMemoryError: PermGen space maven
Could anybody please guide to solve this problem
Apr 2009 16:57:49 +0200
Subject: Re: java.lang.OutOfMemoryError: PermGen space problem
From: nick.stolw...@gmail.com
To: users@maven.apache.org; srinivasv_amb...@yahoo.com
Yes, set your maven_opts to raise the memory for your java process.
ie.
export MAVEN_OPTS=-Xmx512M -XX:MaxPermSize
: java.lang.OutOfMemoryError: PermGen space problem
To: users@maven.apache.org
Date: Wednesday, April 1, 2009, 8:45 PM
Chris Hansen recommends use of the MarkandSweepGCCollector
http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-permgen-outofmemoryerror
Instruct JVM to use ConcurrentMarkSweep
When i put the following line into mvn.bat file,
set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M
It is still giving the error.
Then bump the numbers higher until it stops giving the error. Did you
really need to ask this question -- isn't it obvious?? Google for what
Xmx and XX:MaxPermSize means