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 to no avail.  Finally I investigated which JAVA_OPTS were being used by adding 
echo "Using JAVA_OPTS: $JAVA_OPTS"
To the file.  This told me that the JAVA_OPTS settings in the alfresco init script (export JAVA_OPTS="-Xms256m -Xmx1024m -server") were not being passed to

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, from where they correctly get passed to 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?