<div dir="ltr">Hello there, <div><br></div><div style>I have a question about enabling persistent connections in workload.  The following is how I setup the server and robot in the pg file; as shown, pconn_use_lmt is set to 1000.  </div>
<div><br></div><div><br></div><div><div>Server S1 = {</div><div>    kind = "S101";</div><div>    contents      = [ JpgContent: 73.73%, HtmlContent: 11.45%, SwfContent: 13.05%, FlvContent: 0.06%, Mp3Content: 0.01%, cntOther ];<br>
</div><div>    direct_access = contents;<br></div><div>    addresses = [ '<a href="http://25.57.0.10:9090">25.57.0.10:9090</a>', '<a href="http://25.57.0.11:9090">25.57.0.11:9090</a>' ]; // where to create these server agents<br>
</div><div>    http_versions = [ "1.0" ];  // newer agents use HTTP/1.1 by default<br></div><div>    pconn_use_lmt = const(1000); // Persistent connections - should tune this value</div><div>};</div><div><br></div>
<div><br></div><div>// Note that this Robot has an undefined request-rate in order to enable a</div><div>// best-effort workload.</div><div>Robot R = {</div><div><br></div><div>    kind = "R101";</div><div>    pop_model = { pop_distr = popUnif(); };</div>
<div>    recurrence = 50%;</div><div>    req_rate = undef();</div><div>    origins = S1.addresses;      // where the origin servers are</div><div><br></div><div>    addresses = robotAddrs(authAddrScheme, theBench);<br></div>
<div>    pconn_use_lmt = const(1000); // Persistent connections - should tune this value<br></div><div>    open_conn_lmt = 1; // maximum concurrent connections<br></div><div>    http_versions = [ "1.0" ];  // newer agents use HTTP/1.1 by default</div>
<div>};</div><div><br></div></div><div><br></div><div style>I examine the tcp streams of tcpdump output from the client machine, in a single-robot test; although "connection: keep-alive" are found in both request and respond headers, I see client issue [FIN, ACK]'s every few (<10) requests, that is way before 1000 requests they make.  </div>
<div><br></div><div><br></div><div><div>GET /w1b7335ec.2b642c95:00000008/t03/_0000413f.jpg HTTP/1.0</div><div>Accept: */*<br></div><div>Host: <a href="http://25.57.0.10:9090">25.57.0.10:9090</a><br></div><div>X-Xact: 1b7335ec.2b642c95:00000002 1b7335ec.2b642c95:00020522 0<br>
</div><div>X-Loc-World: 1b7335ec.2b642c95:00000008 -1/16703 8351<br></div><div>X-Rem-World: 1b7335ec.2b642c95:00000008 -1/16703 8351<br></div><div>X-Target: <a href="http://25.57.0.10:9090">25.57.0.10:9090</a><br></div><div>
X-Abort: -324104509 -1205953971<br></div><div>X-Phase-Sync-Pos: 0<br></div><div>Connection: keep-alive<br></div><div><br></div><div>HTTP/1.0 200 OK<br></div><div>Cache-Control: private,no-cache<br></div><div>Pragma: no-cache<br>
</div><div>Date: Wed, 03 Jul 2013 19:50:22 GMT<br></div><div>Connection: keep-alive<br></div><div>Content-Length: 9479<br></div><div>Content-Type: image/jpeg<br></div><div>X-Target: <a href="http://25.57.0.10:9090">25.57.0.10:9090</a><br>
</div><div>X-Xact: 1b7335e7.5e615116:00000002 1b7335ec.2b642c95:7ffdfadd 0<br></div><div>X-Rem-World: 1b7335ef.4e10652d:00000008 -1/15998 7999<br></div><div>X-Abort:  2013317368 2072661844<br></div><div>X-Phase-Sync-Pos: 0<br>
</div></div><div><br></div><div><br></div><div style>I also found the robot machine runs out of ephemeral ports shortly after the starrt of the single-robot test.  The ulimit value of the machine is 65536.   I am surprised to see this if the persistent connections are being used.  FYI, this is non-proxy test.   </div>
<div><br></div><div><div>003.04| EphPortMgr.cc:23: error: 4096/8191 (s98) Address already in use</div><div>003.04| OS probably ran out of ephemeral ports at <a href="http://25.57.100.2:0">25.57.100.2:0</a></div><div>003.04| Client.cc:347: error: 4096/8192 (c63) failed to establish a connection</div>
<div>003.04| 25.57.100.2 failed to connect to <a href="http://25.57.0.11:9090">25.57.0.11:9090</a></div></div><div><br></div><div><br></div><div><br></div><div style>Would you please kindly advise what I might configure wrong?  </div>
<div style><br></div><div style><br></div><div style><br></div><div style>Thanks, </div><div style>Jacky</div><div><br></div><div><br></div><div><br></div></div>