tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Froidevaux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-766) Unable to deploy: java.lang.OutOfMemoryError: GC overhead limit exceeded
Date Wed, 21 Aug 2013 15:00:59 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746108#comment-13746108
] 

Werner Froidevaux commented on TOMEE-766:
-----------------------------------------

With the latest 1.5.3 snapshots (https://repository.apache.org/content/groups/public/org/apache/openejb/apache-tomee/1.5.3-SNAPSHOT/apache-tomee-1.5.3-20130821.041224-111-webprofile.tar.gz)
memory usage is still very high. Same behaviour as with versions 1.5.1 and 1.5.2. In order
to deploy the reported EAR, memory has to be set to -Xmx3G.

As reported, the problems are solved with the 1.6.0 and 1.6.1 snapshots.

Is it possible to apply the same optimisations to the 1.5.3 snapshots or at least to the next
official release of TomEE?

                
> Unable to deploy: java.lang.OutOfMemoryError: GC overhead limit exceeded
> ------------------------------------------------------------------------
>
>                 Key: TOMEE-766
>                 URL: https://issues.apache.org/jira/browse/TOMEE-766
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>         Environment: Linux / OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) /
TomEE 1.5.1
>            Reporter: Werner Froidevaux
>            Priority: Blocker
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message