I found I was getting java.lang.OutOfMemoryError: Java heap space errors in the logs and the bootstrap process repeatedly failed. This turned out to be because the JAVA_OPTS environment variable was being exported in the /etc/init.d/alfresco script and was not being seen when starting the JVM. I added this to /opt/alfresco/tomcat/bin/setenv.sh as follows:
It might also be a benefit to add the following lines to the start of the /opt/alfresco/tomcat/bin/catalina.sh script (it seemed to clear up the java.lang.OutOfMemoryError messages for me):
export JAVA_HOME=/usr/lib/jvm/java-6-sun export JRE_HOME=/usr/lib/jvm/java-6-sun export JAVA_OPTS='-Xms128m -Xmx512m' # (Just before the line specified below): # OS specific support. $var _must_ be set to either true or false.