12-19-2007 09:20 AM
12-19-2007 09:51 AM
12-20-2007 08:47 PM
Hi Paul,
Try setting the JAVA_OPTS like this in the 'alfresco.sh' script:
JAVA_OPTS='-Xms128m -Xmx1024m -server'
export JAVA_OPTS
I know that on Solaris for example a single line Export such as you have posted does not work, maybe this is the same for your Linux version.
Steve
12-21-2007 04:45 AM
and I didn't understand why changing the hostname should carry to a solution…Because that's what fixed it for other people in those threads I linked you to. Note they're not changing the computer's hostname itself, but changing a configuration file which refers to it.
12-21-2007 08:39 AM
Hi,
in your code:
JAVA_OPTS="-Xms128m -Xmx1024m -server"
#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"
JAVA_OPTS="-Djava.rmi.server.hostname=myhostname.mydomainname.net"
export JAVA_OPTS
the line 'JAVA_OPTS="-Djava.rmi.server.hostname=myhostname.mydomainname.net' overwrites any prior JAVA_OPTS settings, so your heap size modifications will not be used.
You need to modify the line to read:
JAVA_OPTS="${JAVA_OPTS} -Djava.rmi.server.hostname=myhostname.mydomainname.net"
A good way to see what your JAVA_OPTS are really set to is to modify the 'catalina.sh' file in tomcat/bin as below:
Find the section that is similar to:
echo Using CATALINA_BASE: %CATALINA_BASE%
echo Using CATALINA_HOME: %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
And add:
echo Using JAVA_OPTS: %JAVA_OPTS%
(I don't know why it's not shown by default by Tomcat…)
Hope this helps,
Steve
12-21-2007 09:29 AM
03-03-2008 11:10 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.