cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco uses all resource after every reboot

kjcsb
Champ in-the-making
Champ in-the-making
After every reboot Alfresco uses all system resources for hours so I think something is wrong with my configuration. What is it likely to be doing or how can I troubleshoot this further?

root      1385  152 20.9 2898316 1573712 ?     Sl   18:24  15:16 /mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/java/bin/java -Djava.util.logging.config.file=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxPermSize=256M -Xms128M -Xmx1024M -XX:-DisableExplicitGC -XX:ReservedCodeCacheSize=128m -XX:MaxPermSize=256m -Xms128m -Xmx1024m -XX:+DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true -XX:ReservedCodeCacheSize=128m -Djava.endorsed.dirs=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat/endorsed -classpath /mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat/bin/bootstrap.jar:/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat -Dcatalina.home=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat -Djava.io.tmpdir=/mnt/Amazon-EBS-Volume/alfresco/alfresco-4.2.f/tomcat/temp org.apache.catalina.startup.Bootstrap start
2 REPLIES 2

eswbitto
Confirmed Champ
Confirmed Champ
We had this exact issue…


XX:MaxPermSize=256M -Xms128M -Xmx1024M -XX:-DisableExplicitGC


You need to change the settings for the memory allocated to your java process. You are only using 1GB of memory.

Go to alfrescoinstall/tomcat/bin/setenv.sh and modify this line


JAVA_OPTS="-XX:MaxPermSize=256M -Xms128M -Xmx4096M $JAVA_OPTS " # java-memory-settings


As you can see this one is set to 4GB of memory. Make sure not to set it over what you actually have on the server for memory.

kjcsb
Champ in-the-making
Champ in-the-making
Thanks that helped.

I had to change ./tomcat/scripts/ctl.sh