cancel
Showing results for 
Search instead for 
Did you mean: 

OutOfMemory Exception

hammerguy
Champ in-the-making
Champ in-the-making
Hi,

I have been trying to work through Jeff Potts tutorials recently updated (jan 2014).
I have downloaded the maven-sdk project from GitHub (https://github.com/jpotts/alfresco-developer-series)
and tried to build it and run it on the embedded Tomcat server (using "integration-test -Pamp-to-war" goal)

Here I get: nested exception is java.lang.OutOfMemoryError: PermGen space

I'm confused because I haven't installed Alfresco, so there is no tomcat installation, but rather embedded.

2 REPLIES 2

leonardo_celati
Champ in-the-making
Champ in-the-making
If I am not wrong, the tutorial uses Maven as its build system. In that case, if you are using Eclipse you can set this in run configurations->jre

-Xmx512m -XX:MaxPermSize=512m

obviously increasing 512m to the size you (and your machine) intend to support.

Otherwise if you are launching trough command line just set:

MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m

thx a lot
This solved it