Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-766

Unable to deploy: java.lang.OutOfMemoryError: GC overhead limit exceeded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.5.1, 1.5.2, 1.5.3
    • 1.6.0
    • None
    • None
    • Linux / OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) / TomEE 1.5.1

    Description

      Since 1.5.1 the required amount of memory to deploy an EAR has increased dramatically.

      With 1.5.0 memory settings

      export JAVA_OPTS="$JAVA_OPTS -Xmx800M"
      export JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=512m"

      was OK. Since 1.5.1 the limits must be increased to at least 3G to deploy a 60 MByte EAR. Moreover the extract and deploy step takes forever. This makes 1.5.1 unusable.

      Below is a typical stack trace:

      org.apache.openejb.OpenEJBException: OpenEJB has encountered a fatal error and cannot be started: The Assembler encountered an unexpected error while attempting to build the container system.: GC overhead limit exceeded
      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:151)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
      at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233)
      at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130)
      at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
      Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
      at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:187)
      at java.util.zip.ZipFile$1.<init>(ZipFile.java:229)
      at java.util.zip.ZipFile.getInputStream(ZipFile.java:229)
      at java.util.zip.ZipFile.getInputStream(ZipFile.java:197)
      at java.util.jar.JarFile.getInputStream(JarFile.java:400)
      at org.apache.xbean.finder.archive.JarArchive$JarIterator$ClassEntry.getBytecode(JarArchive.java:151)
      at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:123)
      at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:136)
      at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:63)
      at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:52)
      at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:678)
      at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:626)
      at org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:502)
      at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:131)
      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:673)
      at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:446)
      at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:364)
      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:343)
      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
      at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233)
      at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130)
      at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      Attachments

        Issue Links

          Activity

            People

              romain.manni-bucau Romain Manni-Bucau
              wfro Werner Froidevaux
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: