1 Reply Latest reply on Sep 23, 2014 7:04 AM by Sascha Janz

    JBoss 4.2.3 slowing down

    Sascha Janz Master

      Hi,

       

      we got some trouble in production. We still use JBoss 4.2.3 with a seam application.  after some days the server is slowing down, the jboss process got 100 % cpu.

       

      when i look at the stacktraces i see

       

      java.lang.Thread.State: BLOCKED (on object monitor)

              at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:80)

              - waiting to lock <0x17cb6020> (a org.jboss.ejb3.InfinitePool)

              at org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:315)

              at org.jboss.ejb3.stateful.StatefulLocalProxyFactory.createProxy(StatefulLocalProxyFactory.java:146)

              at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:53)

              at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)

              at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1273)

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1290)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:763)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)

              at javax.naming.InitialContext.lookup(InitialContext.java:411)

              at org.jboss.seam.Component.instantiateSessionBean(Component.java:1403)

              at org.jboss.seam.Component.instantiate(Component.java:1367)

              at org.jboss.seam.Component.newInstance(Component.java:2148)

              at org.jboss.seam.Component.getInstance(Component.java:2024)

              at org.jboss.seam.Component.getInstance(Component.java:2003)

              at org.jboss.seam.Component.getInstance(Component.java:1997)

              at org.jboss.seam.Component.getInstance(Component.java:1992)

       

      i think it is a configuration issue. the last two weeks we got more users and now we have the problem.

       

      thanks for help

       

      greetings sascha

       


        • 1. Re: JBoss 4.2.3 slowing down
          Sascha Janz Master

          many of the threads hab stacktrace like above.

           

          the root cause of this was

           

          java.lang.Thread.State: RUNNABLE

                  at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:517)

                  at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)

                  at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)

                  at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)

                  at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)

                  - locked <0x17cb5f20> (a org.jboss.ejb3.InfinitePool)

                  at org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:315)

                  at org.jboss.ejb3.stateful.StatefulLocalProxyFactory.createProxy(StatefulLocalProxyFactory.java:146)

                  at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:53)

                  at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)

                  at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1273)

                  at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1290)

                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:763)

                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)

                  at javax.naming.InitialContext.lookup(InitialContext.java:411)

                  at org.jboss.seam.Component.instantiateSessionBean(Component.java:1403)

                  at org.jboss.seam.Component.instantiate(Component.java:1367)

                  at org.jboss.seam.Component.newInstance(Component.java:2148)

                  at org.jboss.seam.Component.getInstance(Component.java:2024)

                  at org.jboss.seam.Component.getInstance(Component.java:2003)

                  at org.jboss.seam.Component.getInstance(Component.java:1997)

                  at org.jboss.seam.Component.getInstance(Component.java:1992)

                  at org.jboss.seam.transaction.AbstractUserTransaction.getSynchronizations(AbstractUserTransaction.java:79)

                  at org.jboss.seam.transaction.UTTransaction.begin(UTTransaction.java:40)

                  at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:592)

                  at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:582)

                  at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:326)

                  at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:143)

                  at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:117)

                  at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)

                  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)

                  at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)

                  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

                  at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                  at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                  at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                  at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

                  at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                  at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)

                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

                  at java.lang.Thread.run(Thread.java:744)