AnsweredAssumed Answered

Installing Alfresco 3.3 Community Edition on ubuntu

Question asked by mijelh on Apr 21, 2010
Latest reply on Apr 22, 2010 by mijelh
I've been struggling to install alfresco 3.3 CE on a test server for a demonstration, without much success.
Every time I start Alfresco, after a few clicks the application crashes:

tomcat/logs/catalina.2010-04-21.log
21-Apr-2010 15:44:28 org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: PermGen space
tomcat/logs/catalina.out
Exception in thread "DefaultScheduler_QuartzSchedulerThread" 21-Apr-2010 15:44:28 org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[127.0.1.1:50507]" java.lang.OutOfMemoryError: PermGen space
15:44:53,344  ERROR [transaction.SpringAwareUserTransaction.trace] Detected first UserTransaction which is being garbage collected without a commit() or rollback()
15:44:55,089  ERROR [transaction.SpringAwareUserTransaction.trace] Logging of transaction call stack is now enabled and will affect performance
Exception in thread "AlfrescoJbpmJobExecutor:127.0.1.1:1" java.lang.OutOfMemoryError: PermGen space

I start java with:
export JAVA_OPTS='-Xms128m -Xmx1024m -XX:MaxPermSize=128m -server'
export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote"
# Following only needed for Sun JVMs before to 1.5 update 8
export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions"

I have only 1GB RAM so maybe I should use a lower xmx, but if I do so, an "out of memory" exception invariably happens (I mean, even earlier). Does alfresco really needs so much memory? I assume it doesn't, because default xmx is 516. Besides, using 500mb RAM when no content is to be indexed, and a single user is logged in seems an "overkill".

What am I doing wrong?

My system:
-Ubuntu 9.10
-java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
-1GB ram
-Intel Core 2 Duo T7500

Outcomes