AnsweredAssumed Answered

alfresco 5.0.b restart taking long

Question asked by sharifu on Sep 15, 2015
Latest reply on Oct 6, 2015 by sharifu
After an upgrade from 4.2.x to 5.0.x community the restart is taking forever. In the logs I see java out of heap space etc. my settings as follows


JAVA_HOME=/opt/alfresco/java
JRE_HOME=$JAVA_HOME
JAVA_OPTS="-XX:+DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/opt/alfresco -Dcom.sun.management.jmxremote -XX:ReservedCodeCacheSize=128m $JAVA_OPTS "
JAVA_OPTS="-XX:MaxPermSize=1G -Xms512M -Xmx10G $JAVA_OPTS " # java-memory-settings
export JAVA_HOME
export JRE_HOME
export JAVA_OPTS
#export JAVA_OPTS="-server -Xms2G -Xmx10G -XX:MaxPermSize=2G -Xss512m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -XX:NewSize=2G -Dalfresco.home=/opt/alfresco -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dsun.security.ssl.allowUnsafeRenegotiation=true -XX:ReservedCodeCacheSize=2G"
export LD_LIBRARY_PATH="/usr/local/apr/lib"


In all my previous version of alfresco i used the below which worked fine.

export JAVA_OPTS="-server -Xms2G -Xmx10G -XX:MaxPermSize=2G -Xss512m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -XX:NewSize=2G -Dalfresco.home=/opt/alfresco -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dsun.security.ssl.allowUnsafeRenegotiation=true -XX:ReservedCodeCacheSize=2G"



exact error in log is below


INFO: Deploying configuration descriptor /opt/alfresco-5.0.b/tomcat/conf/Catalina/localhost/solr4.xml
Sep 15, 2015 12:54:09 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
Sep 15, 2015 12:54:22 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
2015-09-15 13:10:24,248  ERROR [solr.core.SolrCore] [searcherExecutor-6-thread-1] null:java.lang.OutOfMemoryError: Java heap space
   at org.apache.lucene.util.packed.Packed64.<init>(Packed64.java:73)
   at org.apache.lucene.util.packed.PackedInts.getMutable(PackedInts.java:1034)
   at org.apache.lucene.util.packed.PackedInts.getMutable(PackedInts.java:1001)
   at org.apache.lucene.util.packed.GrowableWriter.ensureCapacity(GrowableWriter.java:80)
   at org.apache.lucene.util.packed.GrowableWriter.set(GrowableWriter.java:88)
   at org.apache.lucene.util.packed.AbstractPagedMutable.set(AbstractPagedMutable.java:97)
   at org.apache.lucene.util.fst.NodeHash.addNew(NodeHash.java:152)
   at org.apache.lucene.util.fst.NodeHash.rehash(NodeHash.java:169)
   at org.apache.lucene.util.fst.NodeHash.add(NodeHash.java:133)
   at org.apache.lucene.util.fst.Builder.compileNode(Builder.java:197)
   at org.apache.lucene.util.fst.Builder.freezeTail(Builder.java:289)
   at org.apache.lucene.util.fst.Builder.add(Builder.java:394)
   at org.apache.lucene.search.suggest.fst.WFSTCompletionLookup.build(WFSTCompletionLookup.java:121)
   at org.apache.lucene.search.suggest.Lookup.build(Lookup.java:190)
   at org.apache.solr.spelling.suggest.SolrSuggester.build(SolrSuggester.java:143)
   at org.apache.solr.spelling.suggest.SolrSuggester.reload(SolrSuggester.java:170)
   at org.apache.solr.handler.component.SuggestComponent$SuggesterListener.newSearcher(SuggestComponent.java:466)
   at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1734)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Sep 15, 2015 1:10:24 PM org.apache.catalina.startup.HostConfig deployWAR

Outcomes