Hi,

which openejb version are you using?
Can you print here the content of the Zk war?

Jean-Louis

2011/5/25 mclu <[email protected]>

> Hi out there.
>
> I try to integrate OpenEJB with OpenJPA and Tomcat 6 to an embedded device
> with only 256 MB Memory.
> It works perferct with 40 MB heap size but if I install the ZK sandbox demo
> application in parallel this zk war is also scanned while startup.
>
> This is not needed because I don't plan to use ejb3 stuff there.
> While starting up this results in huge ammount of CPU and Memory usage and
> my heap size exploded to over 300 MB.
>
> I already played with some setting of
> http://openejb.apache.org/3.0/application-discovery-via-the-classpath.html
> but without any effect.
>
> It there a way to filter those known webapps?
>
> Parts of the stack trace I get:
> Caused by: java.lang.OutOfMemoryError: Java heap space
>        at org.apache.xbean.asm.ClassReader.a(Unknown Source)
>        at org.apache.xbean.asm.ClassReader.<init>(Unknown Source)
>        at
>
> org.apache.xbean.finder.AbstractFinder.readClassDef(AbstractFinder.java:293)
>        at
> org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:265)
>        at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:125)
>        at
>
> org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:364)
>        at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:204)
>        at
>
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:662)
>        at
>
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:541)
>        at
>
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:242)
>        at
>
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
>        at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4611)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/memory-issue-while-scanning-other-Tomcat-Webapps-tp3549747p3549747.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to