Re: ApacheBench says my site is unstable?

2001-10-29 Thread Joshua Chamas

Philip Mak wrote:

 Time taken for tests:   21.109 seconds
 Complete requests:  1000
 Failed requests:22
(Connect: 0, Length: 22, Exceptions: 0)
 Total transferred:  196578 bytes
 HTML transferred:   12714 bytes
 Requests per second:47.37
 Transfer rate:  9.31 kb/s received


If ApacheBench complains about length problems, it means
that the length of subsequent requests differs from the 
output length of the first request, so dynamic content usually
screws up ab's response in this way.

--Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: ApacheBench says my site is unstable?

2001-10-29 Thread Philip Mak

On Mon, 29 Oct 2001, Joshua Chamas wrote:

  Complete requests:  1000
  Failed requests:22
 (Connect: 0, Length: 22, Exceptions: 0)

 If ApacheBench complains about length problems, it means
 that the length of subsequent requests differs from the
 output length of the first request, so dynamic content usually
 screws up ab's response in this way.

I thought about that, but the test script just prints Hello world every
time (static length). The failed requests got 0 bytes, according to the
access_log.

I haven't figured out this problem yet, but I'm hoping it's a problem with
ab (after all, it really shouldn't just crash with Broken pipe like
that...).




Re: [OT] ApacheBench says my site is unstable?

2001-10-28 Thread Andrew Ho

Hello,

PMI'm using ApacheBench to perform stress testing on my mod_perl server.
PMIt's not always working, though. Observe the following two runs: (first
PMis Broken pipe; second has some failed requests)

Try writing a Perl (or other language) client that hits the URL you test
over and over again to inspect what is actually returned to the client at
any given time. For example, just use LWP::Simple to GET that URL over and
over again, and save the result (for example) in a hash and report all the
different variations you get. Perhaps your script fails sporadically, not
core dumping, but returning no headers or similarly confusing a regular
HTTP client.

Humbly,

Andrew

--
Andrew Ho   http://www.tellme.com/   [EMAIL PROTECTED]
Engineer   [EMAIL PROTECTED]  Voice 650-930-9062
Tellme Networks, Inc.   1-800-555-TELLFax 650-930-9101
--





ApacheBench says my site is unstable?

2001-10-27 Thread Philip Mak

I'm using ApacheBench to perform stress testing on my mod_perl server.
It's not always working, though. Observe the following two runs: (first is
Broken pipe; second has some failed requests)

[pmak@sg1 bin]$ ./ab -n 1000 -c 10 http://65.119.108.120:8080/
This is ApacheBench, Version 1.3c $Revision: 1.45 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Benchmarking 65.119.108.120 (be patient)...Broken pipe

[pmak@sg1 bin]$ ./ab -n 1000 -c 10 http://65.119.108.120:8080/
This is ApacheBench, Version 1.3c $Revision: 1.45 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2000 The Apache Group, http://www.apache.org/

Server Software:Apache/1.3.22
Server Hostname:65.119.108.120
Server Port:8080

Document Path:  /
Document Length:13 bytes

Concurrency Level:  10
Time taken for tests:   21.109 seconds
Complete requests:  1000
Failed requests:22
   (Connect: 0, Length: 22, Exceptions: 0)
Total transferred:  196578 bytes
HTML transferred:   12714 bytes
Requests per second:47.37
Transfer rate:  9.31 kb/s received

Connnection Times (ms)
  min   avg   max
Connect:   99   101   140
Processing: 5   107   364
Total:104   208   504

Whenever I try to load that URL in my browser, it works so I think it has
something to do with the performance of httpd under load:

[pmak@sg1 bin]$ lynx -dump http://65.119.108.120:8080/

   Hello, world!

Looking in my access_log, I see failed requests like this:

66.33.60.115 - - [25/Oct/2001:22:20:43 -0700] GET / HTTP/1.0 200 0 - 
ApacheBench/1.3d

and successful requests like this:

66.33.60.115 - - [27/Oct/2001:21:31:32 -0700] GET / HTTP/1.0 200 13 - 
ApacheBench/1.3c

Does anyone have an idea what's going on? I can't figure out why some
requests seem to return 0 bytes at random, or why ApacheBench crashes with
Broken pipe. There is nothing in the VirtualHost or the serverwide error
log other than the MaxClients warning:

66.33.60.115 - - [27/Oct/2001:21:31:32 -0700] GET / HTTP/1.0 200 13 - 
ApacheBench/1.3c

MaxClients is set to 50, btw.

server1# uname -a
FreeBSD server1.buildreferrals.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Oct 12 
13:36:14 PDT 2001
[EMAIL PROTECTED]:/usr/src/sys/compile/LOCAL  i386

Apache version 1.3.22, mod_perl verison 1.26

Is there a quirk of FreeBSD that I have to account for, perhaps? This is
my first time setting up Apache on a FreeBSD system (I've always used Red
Hat Linux or SunOS before).