Questions tagged [apachebench]

ApacheBench (ab) is a single-threaded command line computer program for measuring the performance of HTTP web servers

ApacheBench (ab) is a single-threaded command line computer program for measuring the performance of HTTP web servers.

220 questions
235
votes
3 answers

Load Testing with AB ... fake failed requests (length)

To do some load testing, for my own curiosity, on my server I ran: ab -kc 50 -t 200 http://localhost/index.php This opens up 50 keep-alive connections for 200 seconds and just slams my server with requests for index.php In my results, I…
Franky
89
votes
4 answers

How to install Apache Bench on Windows 7?

I want to install Apache Bench on Windows, can someone tell me which MSI to get? I did install some MSI but it seems to have installed apache http server. I just need to run Apache Bench, as I am testing an IIS asp.net application.
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
83
votes
5 answers

ab is erroring out with apr_socket_recv: Connection refused (61)

I am testing eventlet out, and I am getting this error: ~>ab -n 10 -c 1 http://localhost:8090/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
57
votes
4 answers

ab (Apache Bench) error: apr_poll: The timeout specified has expired (70007) on Windows

I'm load testing IIS 7.5 (WinR2/SP1) from my Windows 7/SP1 client. I have a script that makes three ab calls like: start /B cmd /c ab.exe -k -n 500 -c 50 http://rhvwr2vsu410/HelloWebAPI/Home/SyncProducts > SyncProducts.txt When the concurrency is >…
RickAndMSFT
  • 20,912
  • 8
  • 60
  • 78
55
votes
1 answer

How to pass multiple header in Apache Benchmark

I need to pass multiple header in Apache benchmark. I have searched on SO and googled also,but no luck so far. ab -n200 -c100 -H 'clientId:test-client;token:93e6acff-2ef9-4c85-9d0b-c9948a8ee93b' http://127.0.0.1/oauth2/user/client/
dReAmEr
  • 6,986
  • 7
  • 36
  • 63
54
votes
4 answers

investigating apache benchmark failed request

I am just start using AB just today. Read couple of AB tutorial on new and thought give it a try for load testing my site. After using it couple of time I got huge number of failed request. Can you explain what is mean by a failed request? How can I…
user680505
  • 543
  • 1
  • 5
  • 6
48
votes
1 answer

Apache ab will not work - ab: invalid URL when testing python cyclone

I am trying to ab test cyclone. When I run ab -n 2000 -c 25 http://127.0.0.1 I get ab: invalid URL. Well...when I go to ff on my dev machine, the site is there. Here is my nginx config http { upstream frontends { server…
Tampa
  • 75,446
  • 119
  • 278
  • 425
48
votes
3 answers

Which gets the measurements right, JMeter or Apache ab?

I started writing some basic tests in JMeter and was surprised that the measurements are so different from those from Apache ab. I have a gigabit LAN connecting an Intel i7 server running Nginx and an i5 test machine running JMeter or ab.…
Rick-777
  • 9,714
  • 5
  • 34
  • 50
46
votes
2 answers

Apache Bench: Mean vs Mean across all concurrent requests

What is the difference between those 2 fields? : Time per request (mean) Time per request (mean, across all concurrent requests) How is each of them calculated? Sample Output: Time per request: 3953.446 [ms] (mean) Time per request: …
Omar
  • 8,374
  • 8
  • 39
  • 50
40
votes
3 answers

'ab' program freezes after lots of requests, why?

Whenever I use 'ab' to benchmark a web server, it will freeze for a while after having sent lots of requests, only to continue after 20 seconds or so. Consider the following HTTP server simulator, written in Ruby: require 'socket' RESPONSE =…
Hongli
  • 18,682
  • 15
  • 79
  • 107
34
votes
2 answers

Add https support to Apache Bench on Windows

I have Apache server 2.2.15 on my Windows 7 machine and I want to run Bench on a server I have using https. But when I run ab [myopts] https://example.com, I get SSL not compiled in; no https support. From what I've read you can compile ab with…
Matt R. Wilson
  • 7,268
  • 5
  • 32
  • 48
34
votes
3 answers

How do I fix "ssl handshake failed" with ApacheBench?

When I use ApacheBench to test https, the error is returned, "ssl handshake failed". How can I use ApacheBench to test https?
None
31
votes
1 answer

how to install apache benchmark on mac

I am trying to install Apache BenchMark on my macos(macOS Mojave) through brew using the command : brew install homebrew/apache/ab Getting this error: Error: homebrew/apache was deprecated. This tap is now empty and all its contents were either…
Boney
  • 1,462
  • 1
  • 11
  • 19
27
votes
2 answers

How to verify AB responses?

Is there a way to make sure that AB gets proper responses from server? For example: To force it to output the response of a single request to STDOUT OR To ask it to check that some text fragment is included into the response body I want to make…
Alexey
  • 9,197
  • 5
  • 64
  • 76
27
votes
4 answers

Failed requests by length in my ApacheBench load test result

I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5. I've tested my PHP with code below with Apache Bench (ab). It resulted in some errors (Failed Requests) indicating other length than normal. I'm absolutely sure that my PHP result…
Tom Smykowski
  • 25,487
  • 54
  • 159
  • 236
1
2 3
14 15