Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-928

Upgrade from 2.1.7 to 3.2 with lots of content items - GC overhead limit exceeded exception

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3 Enterprise
    • Component/s: None
    • Labels:
      None
    • Environment:
      Dual Core Pentium 2.8Ghz CPU, 3Gb of ram running Windows Vista, Tomcat 6, MySQL 5,1 Alfresco 3.2 E build 300
      JVM args: -Xms512m -Xmx1024m -Xss96k -XX:MaxPermSize=512m -server
    • Resolution Time Custom Field:
      20 weeks, 1 day, 1 hour, 4 minutes, 16 seconds

      Description

      Discovered by validating ETHREEOH-2153

      Steps to reproduce:

      1. Create 160K of content items @ 2.1 sp7 (we used build 449)
      2. Perform upgrade to 3.2 (we used build 300) tomcat + mysql

      following exception is thrown during updateDmPermissions patch application:

      14:00:23,710 INFO [admin.patch.PatchExecuter] Applying patch 'patch.updateDmPermissions' (
      Update ACLs on all DM node objects to the new 3.0 permission model).
      14:02:29,507 User:System WARN [org.alfresco.storeAndNodeIdTransactionalCache] Transactional update
      cache 'org.alfresco.storeAndNodeIdTransactionalCache' is full (10000).
      14:03:52,513 User:System WARN [org.alfresco.parentAssocsTransactionalCache] Transactional update ca
      che 'org.alfresco.parentAssocsTransactionalCache' is full (80000).
      14:08:50,202 ERROR [admin.patch.PatchExecuter] 11160001 org.alfresco.error.AlfrescoRuntimeException
      : 11160000 Exception from transactional callback: org.alfresco.repo.admin.patch.AbstractPatch$1$1@90
      90c4
      at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:57)
      at org.alfresco.error.AlfrescoRuntimeException.makeRuntimeException(AlfrescoRuntimeException
      .java:73)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti
      onHelper.java:370)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti
      onHelper.java:234)
      at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:435)
      at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:399)
      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.jav
      a:514)
      at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:439)
      at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:302)
      at org.alfresco.repo.admin.patch.PatchServiceImpl.access$200(PatchServiceImpl.java:56)
      at org.alfresco.repo.admin.patch.PatchServiceImpl$2.execute(PatchServiceImpl.java:231)
      at org.alfresco.repo.admin.patch.PatchServiceImpl$2.execute(PatchServiceImpl.java:229)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti
      onHelper.java:327)
      at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl
      .java:234)
      at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.j
      ava:168)
      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304
      )
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMe
      thodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:149)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInte
      rceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy72.applyOutstandingPatches(Unknown Source)
      at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:89
      )
      at org.alfresco.repo.admin.patch.PatchExecuter.onBootstrap(PatchExecuter.java:132)
      at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)

      at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicati
      onEventMulticaster.java:77)
      at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(Simple
      ApplicationEventMulticaster.java:75)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractAppli
      cationContext.java:246)
      at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractAppl
      icationContext.java:617)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicatio
      nContext.java:355)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.j
      ava:246)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.jav
      a:189)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderLis
      tener.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.deployWAR(HostConfig.java:830)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      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: java.lang.OutOfMemoryError: GC overhead limit exceeded
      at java.util.Arrays.copyOf(Arrays.java:2882)
      at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
      at java.lang.StringBuffer.append(StringBuffer.java:224)
      at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalke
      r.java:95)
      at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalke
      r.java:80)
      at org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:60)
      at org.hibernate.loader.criteria.CriteriaJoinWalker.<init>(CriteriaJoinWalker.java:90)
      at org.hibernate.loader.criteria.CriteriaJoinWalker.<init>(CriteriaJoinWalker.java:59)
      at org.hibernate.loader.criteria.CriteriaLoader.<init>(CriteriaLoader.java:67)
      at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1550)
      at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
      at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.cacheNodesNoBatch(Hiberna
      teNodeDaoServiceImpl.java:3151)
      at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.cacheNodes(HibernateNodeD
      aoServiceImpl.java:3127)
      at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.cacheNodes(HibernateNodeD
      aoServiceImpl.java:3104)
      at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.convertToChildAssocRefs(H
      ibernateNodeDaoServiceImpl.java:3045)
      at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getChildAssocs(HibernateN
      odeDaoServiceImpl.java:2461)
      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304
      )
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMe
      thodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:149)
      at org.alfresco.repo.transaction.TransactionalDaoInterceptor.invoke(TransactionalDaoIntercep
      tor.java:68)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:171)
      at org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor.invoke(DirtySessionMetho
      dInterceptor.java:419)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:171)
      at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(Si
      ngleEntryTransactionResourceInterceptor.java:163)
      at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntr
      yTransactionResourceInterceptor.java:138)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
      cation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

        Attachments

          Activity

            People

            • Assignee:
              closedbugs Closed Bugs
              Reporter:
              alfrescoqa Alfresco QA Team
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: