cancel
Showing results for 
Search instead for 
Did you mean: 

mvn sdk: integration-test -Pamp-to-war fails due to PermGen space

gpeter
Champ in-the-making
Champ in-the-making
Hi everybody,
I'm trying to setup a working environment under windows 7 to play a bit with alfresco but i can not use the integration-test goal.
I used m2e to create the project importing from https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml, then i have choosen the amp archetype 1.1.1.
I have set the environment variable MAVEN_OPTS="-Xms1024m -Xmx4096m -XXSmiley TongueermSize=1024m".
But when the system tries to set up tomcat (seems that this last version uses it instead of jetty)  it starts to giving me error Caused by: java.lang.OutOfMemoryError: PermGen space
2 REPLIES 2

tonyrivet
Champ in-the-making
Champ in-the-making
Hi,

I had the same error.
I just removed the quotes in the MAVEN_OPTS variable and it solved the problem…

Another possible cause I can think of : if you run the integration-test goal from Eclipse, maybe it uses the JRE options instead of the MAVEN_OPTS environment variable ?

gpeter
Champ in-the-making
Champ in-the-making
My stupid fault, how can a java32 run a heap of 4096m? Smiley Happy
Switched to a 64b JDK and added the "-Xms1024m -Xmx4096m -XXSmiley TongueermSize=1024m" to the VM arguments in the JRE tab of Maven run as… since the MAVEN_OPTS does not affect m2e.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.