Re: java.lang.OutOfMemoryError: PermGen space problem

2009-04-01 Thread Nick Stolwijk
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 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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: java.lang.OutOfMemoryError: PermGen space problem

2009-04-01 Thread Brian E. Fox
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_amb...@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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: java.lang.OutOfMemoryError: PermGen space problem

2009-04-01 Thread Martin Gainty

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.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=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 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-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@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

2009-04-01 Thread SRINIVASA RAO
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 mgai...@hotmail.com wrote:

From: Martin Gainty mgai...@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.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=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 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-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@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

2009-04-01 Thread Wayne Fay
 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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org