3 Replies Latest reply on Oct 10, 2005 12:58 PM by genman

    SOAP latency >= 20 ms

    drhok

      I did some tests with SOAP and JBoss 4.0.2 and it seems that a SOAP call to a stateless SessionBean takes at least 20 ms (if the SessionBean itself does nothing except for an empty method call).

      This is astonishingly independent of the environment: Whether I use a 1GHz single CPU PC or a 3GHz 4-CPU Server on either Linux or WinXP, I always end up with 15 to 25 ms.

      Where does the time go? It's definitely not the network latency, nor CPU overload.

      Is there a way to speed it up? I need JBoss to respond in less than 5 ms.

      Any help would be appreciated.

      PS: I read in this thread http://www.jboss.org/index.html?module=bb&op=viewtopic&t=24284 that 20 ms is actually quite good and might be the end of the pole, but I would like it a bit faster, and 3 years have passed, so it might not be so difficult...

        • 1. Re: SOAP latency >= 20 ms
          genman

           

          "DrHok" wrote:

          Where does the time go? It's definitely not the network latency, nor CPU overload.


          How do you know it is not network latency? There a profiling tools to tell you what it's doing.

          • 2. Re: SOAP latency >= 20 ms
            drhok

             

            "genman" wrote:
            How do you know it is not network latency?


            A ping to the AS takes less than 0.1 ms. And other services on the AS (JBoss and non-JBoss) respond much faster. And it's independent on whether the client is local or remote.

            "genman" wrote:
            There a profiling tools to tell you what it's doing.


            Which profiling tools are there? Could you recommend one?

            • 3. Re: SOAP latency >= 20 ms
              genman


              There's JProfile[r?] and JBoss Profiler. The former has a trial version you can use, and the latter is free but is potentially non-trivial to set up.