0 Replies Latest reply: Feb 8, 2012 10:06 AM by Michal Glowacki RSS

Thread is working all the time

Michal Glowacki Novice

Hi,

 

   I have a problem that needs my JBoss to be restarted 2-3 times a week. Randomly, AJP workers start to take much more CPU than others, thread dump produces for them this:

Thread: ajp-192.168.0.171-8109-298 : priority:5, demon:true, threadId:541, threadState:RUNNABLE

java.util.HashMap.getEntry(HashMap.java:364)
java.util.HashMap.containsKey(HashMap.java:352)
javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1597)
org.jboss.seam.contexts.PageContext.get(org.jboss.seam.contexts.PageContext:68)
org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(org.jboss.seam.contexts.Contexts:179)
org.jboss.seam.Component.getInstance(org.jboss.seam.Component:1985)
org.jboss.seam.Component.getInstance(org.jboss.seam.Component:1980)
org.jboss.seam.Namespace.getComponentInstance(org.jboss.seam.Namespace:55)
org.jboss.seam.Namespace.getComponentInstance(org.jboss.seam.Namespace:50)
org.jboss.seam.el.SeamELResolver.resolveBase(org.jboss.seam.el.SeamELResolver:148)
org.jboss.seam.el.SeamELResolver.getValue(org.jboss.seam.el.SeamELResolver:51)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:111)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:83)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:157)
org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:124)
org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:685)
org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:556)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
org.jboss.seam.web.RewriteFilter.process(org.jboss.seam.web.RewriteFilter:98)
org.jboss.seam.web.RewriteFilter.doFilter(org.jboss.seam.web.RewriteFilter:57)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:73)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:73)
org.jboss.seam.web.IdentityFilter.doFilter(org.jboss.seam.web.IdentityFilter:40)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.MultipartFilter.doFilter(org.jboss.seam.web.MultipartFilter:90)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.ExceptionFilter.doFilter(org.jboss.seam.web.ExceptionFilter:64)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.RedirectFilter.doFilter(org.jboss.seam.web.RedirectFilter:45)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
org.jboss.seam.web.Ajax4jsfFilter.doFilter(org.jboss.seam.web.Ajax4jsfFilter:56)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.LoggingFilter.doFilter(org.jboss.seam.web.LoggingFilter:60)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.servlet.SeamFilter.doFilter(org.jboss.seam.servlet.SeamFilter:158)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:722)

 

Thread: ajp-192.168.0.171-8109-220 : priority:5, demon:true, threadId:463, threadState:RUNNABLE

org.ajax4jsf.event.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:85)
com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
org.jboss.seam.web.RewriteFilter.process(org.jboss.seam.web.RewriteFilter:98)
org.jboss.seam.web.RewriteFilter.doFilter(org.jboss.seam.web.RewriteFilter:57)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:73)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:73)
org.jboss.seam.web.IdentityFilter.doFilter(org.jboss.seam.web.IdentityFilter:40)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.MultipartFilter.doFilter(org.jboss.seam.web.MultipartFilter:90)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.ExceptionFilter.doFilter(org.jboss.seam.web.ExceptionFilter:64)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.RedirectFilter.doFilter(org.jboss.seam.web.RedirectFilter:45)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
org.jboss.seam.web.Ajax4jsfFilter.doFilter(org.jboss.seam.web.Ajax4jsfFilter:56)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.web.LoggingFilter.doFilter(org.jboss.seam.web.LoggingFilter:60)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(org.jboss.seam.servlet.SeamFilter:69)
org.jboss.seam.servlet.SeamFilter.doFilter(org.jboss.seam.servlet.SeamFilter:158)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:722)

 

I am using Seam 2.3.0 ALPHA