Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webrick (and Trinidad) are randomly resetting connections when using ApacheBench #1308

Closed
saurabhnanda opened this issue Dec 6, 2013 · 3 comments

Comments

@saurabhnanda
Copy link

Note: The same test on MRI Ruby is working absolutely fine -- no connection resets at all.

With Trinidad -- randomly fails 11 requests due to a connection reset

saurabhnanda @ ~ $ ab -r -n 1000 http://localhost:3000/a_database_heavy_page
Concurrency Level:      1
Time taken for tests:   189.150 seconds
Complete requests:      1000
Failed requests:        11
   (Connect: 0, Receive: 11, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      6562000 bytes
HTML transferred:       5975000 bytes
Requests per second:    5.29 [#/sec] (mean)
Time per request:       189.150 [ms] (mean)
Time per request:       189.150 [ms] (mean, across all concurrent requests)
Transfer rate:          33.88 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        6   52  69.6     11     271
Processing:     0  137  73.4    160     558
Waiting:        0  136  73.2    160     557
Total:        151  189  27.9    183     566

Percentage of the requests served within a certain time (ms)
  50%    183
  66%    195
  75%    202
  80%    208
  90%    224
  95%    236
  98%    256
  99%    268
 100%    566 (longest request)

With Webrick -- randomly fails 7 request due to connection resets

saurabhnanda @ ~ $ ab -r -n 1000 http://localhost:3000/a_database_heavy_page

Concurrency Level:      1
Time taken for tests:   180.373 seconds
Complete requests:      1000
Failed requests:        7
   (Connect: 0, Receive: 7, Length: 0, Exceptions: 0)
Write errors:           0
Total transferred:      6606000 bytes
HTML transferred:       5975000 bytes
Requests per second:    5.54 [#/sec] (mean)
Time per request:       180.373 [ms] (mean)
Time per request:       180.373 [ms] (mean, across all concurrent requests)
Transfer rate:          35.77 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       16  156  62.6    171     301
Processing:     0   24  53.3      1     209
Waiting:        0   23  53.5      0     208
Total:        150  180  22.8    175     302

Percentage of the requests served within a certain time (ms)
  50%    175
  66%    184
  75%    192
  80%    198
  90%    214
  95%    224
  98%    241
  99%    253
 100%    302 (longest request)
saurabhnanda @ ~ $ 
@saurabhnanda
Copy link
Author

Please keep this on hold. Seems like a bug in ab. It seems to be exhibiting weird behaviour on closer inspection.

@kares
Copy link
Member

kares commented Dec 6, 2013

@saurabhnanda try siege

@enebo enebo added this to the Invalid or Duplicate milestone Feb 17, 2017
@enebo
Copy link
Member

enebo commented Feb 17, 2017

no input for a few years. Please re-open or even make a new issue if this is still an issue.

@enebo enebo closed this as completed Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants