AnsweredAssumed Answered

Passing Environment Variables

Question asked by odomok on Aug 23, 2008
Latest reply on Aug 25, 2008 by odomok
I have been having problems installing Alfresco 2.9 on Ubuntu Hardy,  I kept getting Java Heap space errors in the log.  I have followed the two guides to installation http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10 to no avail.  Finally I investigated which JAVA_OPTS were being used by adding 
echo "Using JAVA_OPTS: $JAVA_OPTS"
To the catalina.sh file.  This told me that the JAVA_OPTS settings in the alfresco init script (export JAVA_OPTS="-Xms256m -Xmx1024m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp") were not being passed to catalina.sh.

I have been starting alfresco using /etc/init.d/alfresco start, and I am logged in as root for this purpose.

I fixed the problem by putting the JAVA_OPTS settings in startup.sh, from where they correctly get passed to catalina.sh and everything works as it should.  My question is what am I missing here?  Why do my settings not get passed from the alfresco init script?

Outcomes