I haven't been able to duplicate this. I see ab reporting some errors but according to the AOLserver logs it is doing the right thing. I have zero previous experience with ab though, so a lot of this is from the hip.
Part of the problem may be that PHP isn't setting a content-length header and ab is getting confused. The length that it is reporting for me for a PHP 5.0.0 phpinfo command is less than the actual output (33292 by ab versus 33422 actual bytes).
I set verbosity to 5 to log everything and the output seems truncated as well. My guess is that it logs just bit of data from the first read but I don't know for sure yet.
For exceptions, I get "Protocol driver not attached." Whether this is an AOLserver-caused problem or not I don't know yet. I think this maps to EADDRNOTAVAIL. It may essentially just be "connection refused" if aolserver ran out of connection threads.
Even with smaller batches of requests it fails. I've been testing with 1000 requests and 20 threads and finding errors. Note that ab does some wierd stuff. If you request 1000 connections you'll get more like 1002. Seems it doesn't count very well.
I tested with AOLserver 4.0.5, PHP 4.3.7 and PHP 5.0.0 on Linux 2.4.24.
rob
Noah Robin wrote:
So, in the interest of science (and probably masochism) I compiled PHP 4.3.8 (with the aolserver.c patch from panoptic) against aolserver 3.5.10 and 4.0.7 last night, and ran some load tests. Result: on linux 2.4.26, and the only PHP configure option was --with-aolserver=, I was seeing a failure rate of ~6% for a page that only called phpinfo().
Load test: /usr/sbin/ab2 -n100000 -c25 http://localhost:8000/ (ab2 being the version of 'ab' that ships with apache2). This failure rate is obviously not going to cut it for production use, and I was wondering if anyone had seen this before. Nothing in the server.log file during the failures; the access log shows that sometimes the request simply returned zero-length content. Thread stack-size has been set to 1M. Anyone seen this before? =)
Noah Robin System Administrator, America Online 703.265.2925 #include <remarks/witty.h>
-- 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.
-- 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.
