You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by SRINIVASA RAO <sr...@yahoo.com> on 2009/04/01 16:51:27 UTC
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 .
Regards,
Sam
Re: java.lang.OutOfMemoryError: PermGen space problem
Posted by Wayne Fay <wa...@gmail.com>.
> 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 and adjust accordingly.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: java.lang.OutOfMemoryError: PermGen space problem
Posted by SRINIVASA RAO <sr...@yahoo.com>.
Hi
Thanks for repley.
When i put the following line into mvn.bat file,
set MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
It is still giving the error.
regards,
Sam
--- On Wed, 4/1/09, Martin Gainty <mg...@hotmail.com> wrote:
From: Martin Gainty <mg...@hotmail.com>
Subject: RE: 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 Collector
-XX:+UseConcMarkSweepGCTell GC to sweep PermGen space
-XX:+CMSPermGenSweepingEnabledrequest JVM to Allow classes to be unloaded
-XX:+CMSClassUnloadingEnabledBedankt,
Martin
______________________________________________
Disclaimer and confidentiality note
This message is confidential and may be privileged. If you are not the intended
recipient, we kindly ask you to please inform the sender. Any unauthorised
dissemination or copying hereof is prohibited. This message serves for
information purposes only and shall not have any legally binding effect. Given
that e-mails can easily be subject to manipulation, we can not accept any
liability for the content provided.
> Date: Wed, 1 Apr 2009 16:57:49 +0200
> Subject: Re: java.lang.OutOfMemoryError: PermGen space problem
> From: nick.stolwijk@gmail.com
> To: users@maven.apache.org; srinivasv_ambati@yahoo.com
>
> 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
> <sr...@yahoo.com> wrote:
> > 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
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009
RE: java.lang.OutOfMemoryError: PermGen space problem
Posted by Martin Gainty <mg...@hotmail.com>.
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 Collector
-XX:+UseConcMarkSweepGCTell GC to sweep PermGen space
-XX:+CMSPermGenSweepingEnabledrequest JVM to Allow classes to be unloaded
-XX:+CMSClassUnloadingEnabledBedankt,
Martin
______________________________________________
Disclaimer and confidentiality note
This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided.
> Date: Wed, 1 Apr 2009 16:57:49 +0200
> Subject: Re: java.lang.OutOfMemoryError: PermGen space problem
> From: nick.stolwijk@gmail.com
> To: users@maven.apache.org; srinivasv_ambati@yahoo.com
>
> 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
> <sr...@yahoo.com> wrote:
> > 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
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009
Re: java.lang.OutOfMemoryError: PermGen space problem
Posted by Nick Stolwijk <ni...@gmail.com>.
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
<sr...@yahoo.com> wrote:
> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: java.lang.OutOfMemoryError: PermGen space problem
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Use the MAVEN_OPTS env to bump up the memory. The contents of this variable are passed directly to your jdk. I forget the exact syntax for increasing the permgen, but I'm sure google knows.
-----Original Message-----
From: SRINIVASA RAO [mailto:srinivasv_ambati@yahoo.com]
Sent: Wednesday, 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 .
Regards,
Sam
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org