Try specifying the "keep-alive" paramter (-k) and retest. You should get
much better results.

It looks like ab sends HTTP 1.0 GET requests to the Web server. The HTTP
1.0 spec requires the "connection: keep-alive" HTTP header to be sent
for the server to honor keep-alive connectiocns.

Interesting thing to note from RFC 2068...

8.1.2.1 Negotiation

An HTTP/1.1 server MAY assume that a HTTP/1.1 client intends to maintain
a persistent connection unless a Connection header including the
connection-token "close" was sent in the request. If the server chooses
to close the connection immediately after sending the response, it
SHOULD send a Connection header including the connection-token close.

Clients and servers SHOULD NOT assume that a persistent connection is
  maintained for HTTP versions less than 1.1 unless it is explicitly
signaled. See section 19.7.1 for more information on backwards
compatibility with HTTP/1.0 clients.

That said, AOLserver currently does NOT assume keep-alive for HTTP 1.1
unless the "connection: keep-alive" HTTP header exists. We're looking at
changing the behavior to match the RFC.  Can anyone think of a reason
not to for 4.0?

Kevin Murphy wrote:

 > Nathan,
 >
 > > Could you send me a tarball of your aolserver, ab, and config files
 > with
 > > instructions about how to test? I'd like to try and verify here.
 > Thanks!
 >
 > Which files do you want, exactly?  I can give you whatever you want.
 >
 > Attached is my nsd.tcl.
 > nsd.tcl (15KB)
 >
 > My test "html" file I generated like this:
 > yes 123456789 | head -1638 >16380.html
 >
 > I place this file in /usr/local/aolserver/servers/server1/pages/.
 >
 > 'ab' I run like this:
 >
 > ab -c 15 -n 1000 http://10.0.0.3:8004/16380.html
 >
 > You can tweak the numeric argument to -c to adjust the number of
 > concurrent requests 'ab' tries to maintain and the argument to -n to
 > adjust the number of requests that will be made.


--
Nathan Folkman
Technical Mgr., AOLserver/NPE/NES
Web Services and Publishing


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to