OutOfMemory Exception

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014 10:15 AM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014 10:22 AM
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
-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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014 10:38 AM
thx a lot
This solved it
This solved it
