3 Replies Latest reply on Oct 12, 2006 7:02 AM by asachde

    Perf testing long running transactions

      Has anyone used Hyades or other open source tools to test long running transactions (Page flow)? I am having trouble getting the conversation ID resent to subsequent transactions. Maybe this belongs more in the tool's forum but figured I'd check to see if anyone has done performance testing on seam with pageflows.

      Thanks.

        • 1. Re: Perf testing long running transactions

          Short of getting a generator working I opened 5 browser windows for a simple application that uses security (modified CVS code) and forwards to a page from where other pageflows are to be launched. The login process does not have a pageflow. Randomly I get the following exception on the console (usually at least 1 out of 5 windows and at times upto 3 windows and when I retry it logs me in w/o a problem)

          17:25:03,712 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
          threw exception
          java.lang.IllegalStateException: JbpmContext may only be used inside a transacti
          on
          at org.jboss.seam.core.ManagedJbpmContext.getJbpmContext(ManagedJbpmCont
          ext.java:71)
          at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:101)
          at org.jboss.seam.Component.callComponentMethod(Component.java:1626)
          at org.jboss.seam.Component.unwrap(Component.java:1647)
          at org.jboss.seam.Component.getInstance(Component.java:1473)
          at org.jboss.seam.Component.getInstance(Component.java:1440)
          at org.jboss.seam.Component.getInstance(Component.java:1422)
          at org.jboss.seam.core.ManagedJbpmContext.instance(ManagedJbpmContext.ja
          va:112)
          at org.jboss.seam.core.ProcessInstance.getProcessInstance(ProcessInstanc
          e.java:42)
          at org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$d0483d8d.CGLIB$
          getProcessInstance$0()
          at org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$d0483d8d$$FastC
          lassByCGLIB$$6ad0764f.invoke()
          at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
          at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInt
          erceptor.java:39)
          at org.jboss.seam.core.ProcessInstance$$EnhancerByCGLIB$$d0483d8d.getPro
          cessInstance()
          at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:101)
          at org.jboss.seam.Component.callComponentMethod(Component.java:1626)
          at org.jboss.seam.Component.unwrap(Component.java:1647)
          at org.jboss.seam.Component.getInstance(Component.java:1473)
          at org.jboss.seam.Component.getInstance(Component.java:1440)
          at org.jboss.seam.Component.getInstance(Component.java:1422)
          at org.jboss.seam.core.ProcessInstance.instance(ProcessInstance.java:58)

          at org.jboss.seam.contexts.BusinessProcessContext.getProcessInstance(Bus
          inessProcessContext.java:210)
          at org.jboss.seam.contexts.BusinessProcessContext.getContextInstance(Bus
          inessProcessContext.java:197)
          at org.jboss.seam.contexts.BusinessProcessContext.get(BusinessProcessCon
          text.java:55)
          at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.ja
          va:153)
          at org.jboss.seam.Component.getInstance(Component.java:1432)
          at org.jboss.seam.Component.getInstance(Component.java:1417)
          at org.jboss.seam.core.RenderParameters.instance(RenderParameters.java:6
          8)
          at org.jboss.seam.core.Manager.redirect(Manager.java:919)
          at org.jboss.seam.core.Manager.interpolateAndRedirect(Manager.java:866)
          at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigat
          ionHandler.java:27)
          at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
          nListenerImpl.java:84)
          at javax.faces.component.UICommand.broadcast(UICommand.java:106)
          at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
          4)
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
          68)
          at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(Lifecycl
          eImpl.java:343)
          at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
          :86)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:173)
          at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter
          .java:33)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:178)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:175)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:74)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :869)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
          rocessConnection(Http11BaseProtocol.java:664)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
          int.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
          kerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)

          • 2. Re: Perf testing long running transactions
            gavin.king

            I believe that this is a bug that is now fixed in CVS.

            • 3. Re: Perf testing long running transactions

              I am actually using the 10/10 build (1.1) for the above test. I'll retest it with the latest build and check - Thanks