AnsweredAssumed Answered

3.2 Upgrade - Reindexer errors: GC Overhead exceeded

Question asked by dc41 on Jul 8, 2009
Latest reply on Sep 22, 2010 by agmira
I'm trying to migrate a 3.0 repository to 3.2. I've copied the alf_data dir and the database to the new install. When I start Alfresco, it begins the reindex but after about 20% complete, it start to get error like:

18:12:21,572 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   162 failed with error: 06070000 Exception in Transaction..
18:12:22,751 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   164 failed with error: 06070001 Exception in Transaction..
18:12:22,756 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   165 failed with error: 06070002 Exception in Transaction..
18:12:32,285 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   166 failed with error: 06070003 Exception in Transaction..
18:12:38,132 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   167 failed with error: 06070004 Exception in Transaction..
18:12:41,039 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   169 failed with error: 06070005 Exception in Transaction..
18:12:41,041 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   170 failed with error: 06070006 Exception in Transaction..
18:12:55,404 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   171 failed with error: 06070007 Exception in Transaction..
18:13:00,253 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   172 failed with error: 06070008 Exception in Transaction..
18:13:01,742 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   173 failed with error: 06070009 Exception in Transaction..
18:13:04,153 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   174 failed with error: 06070010 Exception in Transaction..
18:13:04,793 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer   175 failed with error: 06070011 Exception in Transaction..

Then I get a GC overhead limit exceeded error:

18:14:12,692 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 06070028 Reindex failure for org.alfresco.repo.node.index.FullIndexRecoveryComponent
   at org.alfresco.repo.node.index.AbstractReindexComponent.reindex(AbstractReindexComponent.java:271)
   at org.alfresco.repo.node.index.IndexRecoveryBootstrapBean.onBootstrap(IndexRecoveryBootstrapBean.java:35)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 06070027 Exception in Transaction.
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:403)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:252)
   at org.alfresco.repo.node.index.AbstractReindexComponent.reindex(AbstractReindexComponent.java:262)
   … 36 more
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

I've been playing with the Java_opts settings in alfresco.sh, but nothing seems to help. Here's is the current setting:

APPSERVER="${ALF_HOME}/tomcat"
export JAVA_HOME="/usr/jdk1.6.0_14"
# Set any default JVM values
export JAVA_OPTS='-Xms256m -Xmx256m -Xss640K -XX:MaxPermSize=256m -server'
export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote"
# Following only needed for Sun JVMs before to 1.5 update 8
export 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"
#

This machine is running Ubuntu 9.04 64bit with 2 gigs of RAM. Am I on the right track, or should I be looking somewhere else?

Outcomes