cancel
Showing results for 
Search instead for 
Did you mean: 

Out of Memory Error

bdavies
Champ in-the-making
Champ in-the-making
We know that we need to beef up the JVM memory on our Alfresco 3 install but it won't recognize the increase so we haven't had a successful install yet of 3.  Alfresco 2.1 is up and running.  We are working on a Linux machine that is using Tomcat 5.5.27 and apache. Would anyone care to share their solution for this?
3 REPLIES 3

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Take a look at the Alfresco Installation document at http://wiki.alfresco.com/wiki/Download_Labs.

Edit the line, where JAVA_OPTS is defined in alfresco.sh to something like

export JAVA_OPTS='-Xms128m -Xmx1024m -XX:MaxPermSize=256m -server'

Also take a look at this link about JVM tuning for alfresco http://wiki.alfresco.com/wiki/JVM_Tuning

Best Regards,
Shagul

bdavies
Champ in-the-making
Champ in-the-making
Thank you so much for responding…..
We have already changed the Java opts you mentioned many times but we are still getting the exact same error.  We recently had a successful 2.1 deployed on the same Linux server machine.  We know that 3.0 is bigger, but there must be something we are overlooking!

bdavies
Champ in-the-making
Champ in-the-making
Guess what…..you suggested I check out the "JVM Tuning" section so we did and what we found actually WORKED!

So, thanks a lot and I'm adding the solution below so maybe it will help someone else having an "Out of Memory" problem on a Linux server!

VALUES ADDED TO START UP SCRIPT:

JAVA_OPTS=
-server
-Xss1024K
-Xms1G
-Xmx2G
-XX:MaxPermSize=128M
-XX:NewSize=512m

Thanks again!