<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Can you double check that you're
      interpreting the profiler data correctly<br>
      (specifically with respect to where threads are spending time
      versus where they are using CPU)?<br>
      <br>
      The spot you pointed out *should* show up as a place where threads
      spend lots of time,<br>
      as these threads just sit waiting in the read calls for the vast
      majority of their life.<br>
      <br>
      But it should *not* be a CPU hotspot -- these threads should be
      idle during that time.<br>
      <br>
      -Dennis<br>
      <br>
      On 06/11/2014 03:52 AM, Gustavo Fernandes wrote:<br>
    </div>
    <blockquote
      cite="mid:1402476723.14336.27.camel@localhost.localdomain"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="GENERATOR" content="GtkHTML/4.6.6">
      Hi,<br>
      <br>
      While investigating some CI failures in query (timeouts), I've
      narrowed down the issue to the Jgroups protocol stack being used.
      <br>
      Running a 'mvn clean install' in the query/ module takes about
      6min (when timeout does not happen). If I run instead: <br>
      <br>
      mvn -Dtest.protocol.jgroups=udp clean install<br>
      <br>
      Time goes down to around 50s. Recent changes in core's
      jgoups-tcp.xml for the tests were the removal of the loopback=true
      and the modification of the bundler_type, but they don't seem to
      affect the outcome.<br>
      <br>
      FYI, taking a single test and stripping down from it everything
      but the cluster formation and data population (5 objects) leads to
      the cpu hotspot below, and it takes almost 1 minute&nbsp; <br>
      <br>
      I'd be happy to change the query tests to udp, but first would
      like to hear your thoughts about this issue<br>
      <br>
      Gustavo<br>
      <br>
      <pre>+----------------------------------------------------------------------------------+------------------+--------------------+
|                                       Name                                       |    Time (ms)     |  Invocation Count  |
+----------------------------------------------------------------------------------+------------------+--------------------+
|  +---java.net.SocketInputStream.read(byte[], int, int, int)                      |  101,742  100 %  |             4,564  |
|    |                                                                             |                  |                    |
|    +---java.net.SocketInputStream.read(byte[], int, int)                         |                  |                    |
|      |                                                                           |                  |                    |
|      +---java.io.BufferedInputStream.fill()                                      |                  |                    |
|        |                                                                         |                  |                    |
|        +---java.io.BufferedInputStream.read()                                    |                  |                    |
|          |                                                                       |                  |                    |
|          +---java.io.DataInputStream.readInt()                                   |                  |                    |
|            |                                                                     |                  |                    |
|            +---org.jgroups.blocks.TCPConnectionMap$TCPConnection$Receiver.run()  |                  |                    |
|              |                                                                   |                  |                    |
|              +---java.lang.Thread.run()                                          |                  |                    |
+----------------------------------------------------------------------------------+------------------+--------------------+

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>