2 Replies Latest reply on Oct 2, 2009 10:25 AM by Richard Qin

    threads blocked by richfaces in load test

    Richard Qin Newbie

      I'm running load test with my app using seam-2.2.0-ga & richfaces-3.3.1-ga. My app java process always spike to 100% cpu. I have captured the thread stack, and find so many threads blocked by richfaces. The detail thread stack is as following:

      Thread: http-172.17.193.85-8080-2 : priority:5, demon:true, threadId:75, threadState:BLOCKED, lockName:java.lang.Class@1896d843org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)

      org.apache.xerces.parsers.XML11Configuration.(Unknown Source)org.apache.xerces.parsers.XIncludeAwareParserConfiguration.(Unknown Source)org.apache.xerces.parsers.XIncludeAwareParserConfiguration.(Unknown Source)sun.reflect.GeneratedConstructorAccessor5.newInstance(Unknown Source)
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      java.lang.Class.newInstance0(Class.java:355)java.lang.Class.newInstance(Class.java:308)org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
      org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      org.apache.xerces.parsers.DOMParser.(Unknown Source)
      org.apache.xerces.parsers.DOMParser.(Unknown Source)
      org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      org.ajax4jsf.context.ResponseWriterContentHandler.(ResponseWriterContentHandler.java:48)
      org.ajax4jsf.context.ViewResources$HeadResponseWriter.(ViewResources.java:259)
      org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:444)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
      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.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:6
      9)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java: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:230)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
      org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
      org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
      java.lang.Thread.run(Thread.java:619)
      Any suggestion are appreciated.