Nginx TCP Delays

Khalid Shaikh khalid.j.shaikh at gmail.com
Mon Sep 21 20:00:43 MSD 2009


Salut Francois,
Excellent suggestion.

Even  in the test that passed, 11 seconds is not really acceptable.  If i
conduct a telnet localhost 80, sometimes it takes many seconds before
showing you

Check out these results with curl.  Over 90 seconds of 'waiting'
http://screencast.com/t/g5uvshJY25Ty

You can see near the end of the video when I start and restart nginx and do
a number of tests, some respond instantly, some take a while.

Results

*Test #1*
Benchmarking localhost (be patient)...apr_poll: The timeout specified has
expired (70007)

*Test #2*
violet2:~# ab -k -n 100 -c 10 http://localhost/test.html
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done


Server Software:        nginx/0.8.15
Server Hostname:        localhost
Server Port:            80

Document Path:          /test.html
Document Length:        17 bytes

Concurrency Level:      10
Time taken for tests:   0.015 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100
Total transferred:      30400 bytes
HTML transferred:       1700 bytes
Requests per second:    6544.50 [#/sec] (mean)
Time per request:       1.528 [ms] (mean)
Time per request:       0.153 [ms] (mean, across all concurrent requests)
Transfer rate:          1942.90 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       0
Processing:     0    1   3.1      0      11
Waiting:        0    1   3.1      0      11
Total:          0    1   3.2      0      11

Percentage of the requests served within a certain time (ms)
  50%      0
  66%      1
  75%      1
  80%      1
  90%     11
  95%     11
  98%     11
  99%     11
 100%     11 (longest request)

*Test #3*
Benchmarking localhost (be patient)...apr_poll: The timeout specified has
expired (70007)

Best,
Khalid

On Mon, Sep 21, 2009 at 1:54 AM, François Battail
<fb at francois.battail.name>wrote:

> Le lundi 21 septembre 2009 à 01:20 -0700, Khalid Shaikh a écrit :
>
> > Spoke too soon.
> > 9 second response
>
> Can you try:
>
> ab -k -n 100 -c 10 http://localhost/test.html
>
> (It's Apache Bench from Debian's apache2-utils package, it will give us
> a more precise idea of the timings)
>
> Best regards
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090921/d1905178/attachment.html>


More information about the nginx mailing list