4 Replies Latest reply on Oct 9, 2014 3:39 AM by Jimmy Pannier

    Web Performance Testing

    David Delos Newbie

      Hi,

       

      What about using jmeter with errai framework ? How are you testing your web applications ?

       

      As jmeter does'nt support websocket yet, i've disabled the websocket communication for testing.

      I've created a web plan for testing performance of errai with a jboss server (I recorded the http communications via a proxy).

       

      The problem is that the urls of http requests seems to be generated (applicationContext/out.7524-1692.erraiBus?z=0&clientId=7524-1692&phase=connection&wait=1)

       

      So when i start the jmeter test (replay the http requests), the server consoles shows the following errors.

       

      Exception: org.jboss.errai.bus.server.QueueUnavailableException: no queue available to send. (queue or session may have expired): (session id: b93c726c9b297e962b96dcb3663d665113b4345e7611262197d8bdb2f47fa40)

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) disconnect: true

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) java.lang.RuntimeException: Failed to dispatch CDI Event

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:162)

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:296)

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)

      2014-09-29 11:01:51,187 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:142)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

      2014-09-29 11:01:51,188 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

      2014-09-29 11:01:51,189 ERROR [stderr] (default task-57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)

      2014-09-29 11:01:51,190 ERROR [stderr] (default task-57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      2014-09-29 11:01:51,191 ERROR [stderr] (default task-57) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      2014-09-29 11:01:51,191 ERROR [stderr] (default task-57) at java.lang.Thread.run(Thread.java:745)