Thursday, 14 August 2014

Alfresco memory settings

Depending of Alfresco version java memory settings for Alfresco are located in different files and locations.

For older versions Alfresco version these settings are located in Alfresco home folder in file alfresco_home/alfresco.sh. Line look something like this

export JAVA_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server'

So every time you start alfresco, these java memory settings will be applied!

In newer versions of Alfresco java memory setting are in alfresco_home//tomcat/scripts/ctl.sh
 in line

 export JAVA_OPTS="-XX:MaxPermSize=512m -Xms256m -Xmx1024m ..

Each memory change demands restart of alfresco application.
In case that you can't find memory settings, easiest way to find it is

server#cd alfresco_home
server#grep -r PermSize *
# grep -r 'PermSize' *
alfresco.sh:export JAVA_OPTS='Xms256m -Xmx1024m -XX:MaxPermSize=512m -server'



No comments: