cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: 2.2 OutOfMemoryError
Date Wed, 14 May 2008 09:55:52 GMT
Hi Andre
> Hello,
>
> I've been noticing the following error when deploying my cocoon WAR 
> more than about 6-7 times without restarting the app server. This 
> stack trace occurs on OS X and on Linux with JDK 1.5.0 in both 
> cases. I am running JBoss 4.2.2GA; the memory settings are -Xms128m 
> -Xmx512m.
>
> Should I be restarting the app server every time I deploy the app or 
> is this a leak for which I need to gather more information for an 
> eventual bug report?

You can try to increase PermGen space using i.e. -XX:MaxPermSize=256m as 
additional memory setting as this is running out of space.
(http://java.sun.com/j2se/embedded/faq.html)

HTH
Felix

>
> Thanks for any input on this.
>
> Andre.
>
>
> 05:00:32,152 INFO  [STDOUT] 05:00:31,367 ERROR [ContextLoader] Context 
> initialization failed
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 
> 'javax.servlet.http.HttpServletRequest/callstack': *Initialization of 
> bean failed; nested exception is java.lang.OutOfMemoryError: PermGen 
> space*
> Caused by: 
> java.lang.OutOfMemoryError: PermGen space
> at java.lang.reflect.Proxy.defineClass0(Native Method)
> at java.lang.reflect.Proxy.getProxyClass(Proxy.java:504)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:117)
> at 
> org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
> at 
> org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:109)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1162)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
> at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> at 
> org.springframework.web.context.ContextLoader.createWebApplicationContext 
> <http://web.context.ContextLoader.createWebApplicationContext>(ContextLoader.java:244)
> at 
> org.springframework.web.context.ContextLoader.initWebApplicationContext 
> <http://web.context.ContextLoader.initWebApplicationContext>(ContextLoader.java:187)
> at 
> org.springframework.web.context.ContextLoaderListener.contextInitialized 
> <http://web.context.ContextLoaderListener.contextInitialized>(ContextLoaderListener.java:49)
> at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
> 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:585)
> at 
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
> at 
> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at 
> org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>
> -- 
> andre-lists@thenot.org <mailto:andre-lists@thenot.org>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message