This content has been marked as final.
Show 3 replies
-
1. Re: building 7.1.3 ==> java.lang.OutOfMemoryError: PermGen space
nickarls Feb 11, 2013 8:11 AM (in response to herb)I guess you can pass in -XX:MaxPermSize=512M or set it in MAVEN_OPTS if that doesn't work.
-
2. Re: building 7.1.3 ==> java.lang.OutOfMemoryError: PermGen space
sfcoy Feb 11, 2013 8:19 AM (in response to herb)1 of 1 people found this helpfulI add this alias to my ~/.bash_profile:
{code:bash}alias m512='export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"'{code}
When I'm doing large builds or see Maven memory errors I can type m512 on the command line to set up the MAVEN_OPTS environment variable.
-
3. Re: building 7.1.3 ==> java.lang.OutOfMemoryError: PermGen space
herb Feb 11, 2013 9:02 AM (in response to nickarls)passing in -XX:MaxPermSize=512M does not work (I forgot to mention, I already tried it) - but MAVEN_OPTS did the job!!
Thanks!