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/ 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/
 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' * JAVA_OPTS='Xms256m -Xmx1024m -XX:MaxPermSize=512m -server'

No comments: