Project

General

Profile

what is Non-2xx responses ?

Added by rookie7799 over 14 years ago

I'm running some tests on the local server:

Dual six-core Intel Cpus
24GB of ram

ab -n90000 -c500 "http://10.0.0.102/test.php"
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.0.0.102 (be patient)
Completed 9000 requests
Completed 18000 requests
Completed 27000 requests
Completed 36000 requests
Completed 45000 requests
Completed 54000 requests
Completed 63000 requests
Completed 72000 requests
Completed 81000 requests
Finished 90000 requests

Server Software: lighttpd
Server Hostname: 10.0.0.102
Server Port: 80

Document Path: /test.php
Document Length: 369 bytes

Concurrency Level: 500
Time taken for tests: 7.151339 seconds
Complete requests: 90000
Failed requests: 1258
(Connect: 0, Length: 1258, Exceptions: 0)
Write errors: 0
Non-2xx responses: 88742
Total transferred: 47988552 bytes
HTML transferred: 33761004 bytes
Requests per second: 12585.06 [#/sec] (mean)
Time per request: 39.730 [ms] (mean)
Time per request: 0.079 [ms] (mean, across all concurrent requests)
Transfer rate: 6553.04 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 20 116.2 16 3020
Processing: 2 17 13.5 17 489
Waiting: 1 17 13.5 17 488
Total: 8 38 117.5 33 3256

Percentage of the requests served within a certain time (ms)
50% 33
66% 34
75% 34
80% 34
90% 34
95% 34
98% 36
99% 80
100% 3256 (longest request)

can someone tell me what a hell is Non-2xx responses: 88742 ???

Thank you :)


Replies (5)

RE: what is Non-2xx responses ? - Added by nitrox over 14 years ago

See your servers log?

RE: what is Non-2xx responses ? - Added by rookie7799 over 14 years ago

it would be something like:

2011-01-25 11:44:14: (log.c.166) server started
2011-01-25 11:44:14: (server.c.961) WARNING: unknown config-key: server.use-noatime (ignored)
2011-01-25 11:44:22: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 117
2011-01-25 11:44:22: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 93
2011-01-25 11:44:22: (mod_fastcgi.c.3597) all handlers for /index.php? on .php are down.
2011-01-25 11:44:22: (mod_fastcgi.c.3597) all handlers for /index.php? on .php are down.
2011-01-25 11:44:24: (mod_fastcgi.c.2764) fcgi-server re-enabled:  0 /tmp/php.socket
2011-01-25 11:44:24: (mod_fastcgi.c.2764) fcgi-server re-enabled:  0 /tmp/php.socket

RE: what is Non-2xx responses ? - Added by nitrox over 14 years ago

And your access.log shows 500 (aka the non-2xx responses).

RE: what is Non-2xx responses ? - Added by rookie7799 over 14 years ago

what's "non-2xx responses" ?

RE: what is Non-2xx responses ? - Added by ver about 14 years ago

http protocol responds to a request using a response code. anything within the 200s range means 'okay'. 400s are resource related errors, such as a 404 File Not Found. 500s are server errors. there are other old 100s, and commonly 300s which are a bit more advanced and typically involve responding to request questions such as "hey server, i downloaded this file on this date at this time. has it changed over on your side since then?" (if-modified-since) where the server could respond with 304 Not Modified and no additional content.

the 'ab' utility should make simple requests, though, and one would expect a success to have no 'non 2xx' responses.

in other words something is broken with your server somehow, so check your logs. look for any responses that aren't in the 200s range. in particular you'll be looking for 404 or 500 and fix those issues.

    (1-5/5)