Questions tagged [ab]

ab is a command-line open source program from apache httpd project used for benchmarking a webserver. It has options for specifying concurrent connections, total number of requests and more.

Filter by
Sorted by
Tagged with
0 votes
0 answers
100 views

How to run apache benchmark with TLS1.3 support?

I'm trying to use the apache benchmark tool. Upon using the following command I get xx@xx:/etc/apache2/bin$ ./ab -n 10 https://10.29.2.98/ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> ...
user avatar
0 votes
1 answer
2k views

SSL Handshake failure when using a TLSv1.3 ciphersuite on ApacheBench (ab)

I was trying to use the Apache Bench (ab) on my local server which is running Apache HTTP Server, with the ssl module enabled, using the TLS1.3 as a protocol to use in communication but anytime I try ...
user avatar
  • 1
0 votes
0 answers
184 views

Why Apache Busy Workers never go back to Idle mode?

I have a CentOS 8 server, Apache 2.4, PHP 7.2, 4GB RAM and 2 Core CPUs that is not live yet. I'm using Apache MPM event and PHP-FPM static and my apache benchmark test shows server can handle 300 ...
user avatar
0 votes
1 answer
489 views

How to revive nginx after it got beatup by stress testing

Background I got two ec2 instances running laravel app on an nginx server behind a load balancer. We had the brilliant idea of running stress testing on the instances using apache ab like so: ab -...
user avatar
  • 1,087
0 votes
1 answer
73 views

How to resist ab?

Is there any way to resist the apache benchmark tool on Debian? I have fail2ban, psad, and a bunch of apache modules that are supposed to defend against attacks,but ab on a different computer always ...
user avatar
0 votes
0 answers
41 views

AB benchmark: why is my app 10 times faster increasing concurrency 10 times? [duplicate]

I don't understand very well the behavior of my web application. It's a php web application running on Nginx. I tried to test some simple page and I get: ab -n 5000 -c 500 http://xxx Req per sec: 600 ...
user avatar
  • 531
6 votes
3 answers
14k views

Why is ab erroring with: apr_socket_recv: Connection reset by peer (54) on OSX?

I'm trying to use ab to benchmark a cluster of 4 ubuntu boxes running nginx that are load balanced by another ubuntu box running haproxy. For those interested I'm following along with the ...
user avatar
  • 259
1 vote
0 answers
586 views

Is Apache Prefork working fast then Worker MPM to serve static content?

I have found so many stuff related to Apache worker MPM is working fast than Prefork MPM, i know nginx is another option but i want to stick on apache as for use of htaccess and some other features, ...
user avatar
  • 11
1 vote
0 answers
109 views

I do a AB Apache Test and it seems good, But when I load my website I get Errors

I have an online shopping website, I use WordPress, WooCommerce and W3 Total Cache. I do a AB: ab -l -r -n 600 -c 30 -k -H "Accept-Encoding: gzip, deflate" And I get the following results: ...
user avatar
1 vote
2 answers
10k views

Optimizing HAProxy SSL Termination (with Nginx backend on Ubuntu)

How can I optimize HAProxy with SSL Termination to Nginx backends on Ubuntu? The setup works fine and routes properly. However, when I perform SSL Termination with HAProxy, theres a huge performance ...
user avatar
23 votes
5 answers
44k views

Does CURL cache requests?

This is a pretty long question, so bear with me. I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to ...
user avatar
2 votes
5 answers
6k views

slow SSL apache server

I have a problem with a slow Apache server with SSL 256bit cert ab -n 500 https://example.com/ Time per request 29 ms ab -n 500 http://example.com/ Time per request 10 ms 52 Bytes is sent in both ...
user avatar
  • 1,875
1 vote
1 answer
397 views

Why is Apache 2.4.7 in ab tests just as fast as NginX 1.4.6?

Im very confused right now... I've always used Nginx to serve up static files and pass off php to Apache. I built a new box 4GB Ram, installed Apache 2.4.7 with mpm_prefork module and NginX 1.4.6. ...
user avatar
  • 147
1 vote
0 answers
570 views

Haproxy load balancing TPS lower than single node

I have 2 apache2 servers running in the back end and have a haproxy between them and the clients. If I bench tested anyone of these apache2 severs with ab i get north of a 1500TPS however when I bench ...
user avatar
  • 141
2 votes
1 answer
6k views

Apache/ab testing trouble - apr_socket_recv: Connection refused (111)

I have a problem with testing Apache server 2.4 by ab. The Apache server runs on Windows as a service and I test it from another server which is on Linux. I write: ab -n 1000 -c 1000 "http://x.x.x....
user avatar
  • 21
1 vote
0 answers
956 views

APACHE/NGINX fine tuning for Apache Benchmark testing

I need to know some tuning configuration about APACHE/NGINX. I use Ubuntu Server 12.04.4 LTS on VirtuaBox with two VM: one with APACHE 2.2.22, the other with NGINX 1.1.19. In addition I installed PHP ...
user avatar
2 votes
0 answers
131 views

using siege, ab, whatever to benchmark 304 not modified responses

Is it possible by simple tools like ab or siege to check a server's http 304 not modified response performance? I have a system that shold provide file changes in realtime, so the user agent has to ...
user avatar
  • 1,128
0 votes
1 answer
1k views

What's the AB Command to Test 1000 Concurrent Visitors

How can I perform an AB test with 1,000 concurrent visitors in just a second? Say in 1 second, there are 1000 visitors on my site. And in another second there are 1800. In Another second again (3 ...
user avatar
  • 279
0 votes
1 answer
417 views

Is there an apache module or a server setting that will block apache benchmark

I was trying to perform apache benchmark on one of the server. However, the apache benchmark will always getting a timeout error. I was wondering is there a module (like mod security) or a setting (...
user avatar
  • 183
2 votes
1 answer
438 views

Is this much (40x) nginx slowdown under HTTPS to be expected?

So I've created a simple file, ab.htm, with just "test" in it. ab -n 1000 -c 10 http://www.domain.com/ab.htm gives me 15400req/sec and ab -n 1000 -c 10 https://www.domain.com/ab.htm gives me ...
user avatar
  • 1,034
0 votes
1 answer
897 views

ipv6 transparent proxy usage using apache benchmark(ab) apache2-utils-2.2.22

Would anybody please provide any hints on why the ab is failing work on ipv6 client/server configuration, while ipv4 is working good ? Thanks in advance == Client configuration: Apache benchmark ...
user avatar
  • 131
1 vote
3 answers
750 views

inconsistencies between stress test and real browsing

I have noticed that a new server that I am setting up is fairly slower than the current server, and made some stress tests/benchmarking to study the problem. But after the tests I am getting ...
user avatar
  • 121
0 votes
2 answers
1k views

Can't get nginx to reply to ab with compressed content

ab -n 1 -H 'Accept-Encoding: gzip, deflate' http://mywebsite.com/ This always returns the uncompressed content (I can see that both from its size and because I'm sniffing the traffic with ngrep). ...
user avatar
0 votes
1 answer
129 views

lighttpd: SMP workers causing performance degrade

I am trying to increase the performance of my lighttpd system by using SMP workers for multiple cores.It turns out that instead of improving the performance it is degrading it. I dont seem to ...
user avatar
  • 101
39 votes
1 answer
87k views

How to install Apache Benchmark on CentOS?

I try to install Apache Benchmark using Is there a way to install Apache Bench (ab) without installing apache solutions on my centos but when i run yumdownloader httpd, i get error: root@local [~/...
user avatar
14 votes
1 answer
24k views

Apache AB (ApacheBench) : -no-check-certificate option available?

It seems there is no option to avoid this error : "Verify return code: 20 (unable to get local issuer certificate)". Is there a way to avoid issuer ssl check with AB (like wget's -no-check-certificate ...
user avatar
  • 533
1 vote
0 answers
279 views

Fail with ab test with nginx, two workers and 1024 connections?

I'm doing some tests with nginx 1.4.1 and Node.js 0.10.5 on my development machine (P8700 Dual Core 2.53Ghz, 4Gb RAM running Xubuntu x64). Unfortunately I can't do ab with 100000 requests with a ...
user avatar
  • 325
0 votes
1 answer
718 views

Apache Bench reports different result with same page

I'm running into a little problem base-lining an Apache2/fcgi/php-fpm server I am setting up. If I run: ab -n 15000 http://mysite.com/index.php. Apache Bench returns Time per request: 41ms but ...
user avatar
  • 1
1 vote
1 answer
867 views

Performance: Nginx SSL slowness or just SSL slowness in general?

I have an Amazon Web Services setup with an Apache instance behind Nginx with Nginx handling SSL and serving everything but the .php pages. In my ApacheBench tests I'm seeing this for my most ...
user avatar
1 vote
3 answers
2k views

What's the difference of running ab locally and remotely?

I was benchmarking my site with apache ab and I noticed that the response time had big differences when running ab on the server and running ab on a client box remotely. So what's the biggest ...
user avatar
3 votes
1 answer
3k views

What does "receive" and "exceptions" mean in ab (Apache Benchmark) "failures"?

Getting this result from ab: Concurrency Level:      10000 Time taken for tests:   69.153 seconds Complete requests:      30000 Failed requests:        10379   (Connect: 0, Receive: 3424, Length: ...
user avatar
  • 236
2 votes
1 answer
1k views

ab Failed Requests

I've built a simple apache + django + mod_wsgi webapp that I am testing on my local machine. I've started load testing it using ab - and I am seeing a few failed requests. ab -n 500 -c 100 "http://...
user avatar
  • 121
17 votes
4 answers
9k views

How to replicate nginx data to two servers?

I'm trying to replicate the traffic that one specific nginx server receives to two servers. The goal is not to load-balance, but to replay the same input on all nginx servers. An example: Nginx ...
user avatar
1 vote
2 answers
114 views

Why are 20 requests executed in parallel slower than 10x2?

This question bothers me, and I do not think I am going to find the answer myself, so I thought it might be best to look for help. When I do: root@server1:~$ ab -n 20 -c 20 http://www.testserver.com/...
user avatar
  • 111
7 votes
2 answers
12k views

How do I analyze an Apache Bench result?

I need some help with analyzing a log from Apache Bench: Benchmarking texteli.com (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed ...
user avatar
0 votes
1 answer
378 views

Difference in performance: local machine VS amazon medium instance

I see a drastic difference in performance matrix when i run it with apache benchmark (ab) in my local machine VS production hosted in amazon medium instance. Same concurrent requests (5) and same ...
user avatar
1 vote
1 answer
1k views

Benchmarking a webserver using AB won't parse images

I'm using AB to benchmark one of my servers but it doesn't seem to parse the images at all. If I use ... ab http://foobar.com/image1.jpg It works brilliantly, but if I use ... ab http://foobar.com/...
user avatar
  • 568
2 votes
2 answers
277 views

Local vs cloud benchmark testing -- which is better?

I have tried using Apache Benchmark (ab) to test my server. I ran the same test twice -- once locally on my local Mac desktop and once on a Media Temple server I rent. EDIT: To clarify, I am testing ...
user avatar
  • 121
5 votes
1 answer
2k views

Very low requests/second with fresh NGINX install

With a fresh install of nginx, I obtain these results running apache benchmark, which I feel are very very odd. The page fetched is the default static index.html test page installed by nginx. Running ...
user avatar
16 votes
2 answers
22k views

ApacheBenchmark ab - SSL read failed - closing connection

When I am running ab on my website I get a ton of these responses: SSL read failed - closing connection SSL read failed - closing connection SSL read failed - closing connection And some times it is ...
user avatar
2 votes
1 answer
9k views

Apachebench on node.js server returning "apr_poll: The timeout specified has expired (70007)" after ~30 requests

I just started working with node.js and doing some experimental load testing with ab is returning an error at around 30 requests or so. I've found other pages showing a lot better concurrency ...
user avatar
  • 121
5 votes
1 answer
5k views

Using ab to benchmark nginx: Connection reset by peer (54)

I recently updated to nginx 1.0.8 and tried to benchmark performance for cached dynamic pages (initially served by a Django app via proxy_pass) and for static pages. In both cases, nginx will not ...
user avatar
  • 239
2 votes
0 answers
570 views

server benchmarking with apache benchmark

We are testing one of our production server with ab and what we found is apr_socket_recv: Connection timed out (110) Total of 176 requests completed after some time above output.That means the ...
user avatar
35 votes
4 answers
42k views

Is there a way to install Apache Bench (ab) without installing apache

Can you provide instuctions on how to install ab on a fedora distro with or without installing the apache web server? With yum or compiling from source.
user avatar
  • 465
25 votes
1 answer
8k views

Receiving error apr_socket_connect(): Invalid argument (22) when running apache bench (ab) on OSX

I received the following error on Apache bench: apr_socket_connect(): Invalid argument (22) when trying to connect to http://localhost:9202.
user avatar
  • 801
4 votes
3 answers
3k views

http benchmarking?

im running varnish->nginx(php-fpm) and im using ab but it keeps messing up. [root@localhost src]# ab -k -n 100000 -c 750 http://192.168.135.12/index.php This is ApacheBench, Version 2.0.40-dev <$...
user avatar
4 votes
1 answer
2k views

How to utilize Varnish for A/B Testing and Feature Rollout?

Today we have our web layer exposed to the world. We would like to add Varnish in front of our web layer to accelerate the site and reduce calls to the backend. However, we have some concerns and i ...
user avatar
  • 181
3 votes
2 answers
2k views

Nginx / uWsgi / Django site can handle more traffic with rewrite URL

I'm running a Django app, using uWsgi behind Nginx. I've been doing some performance tuning and load testing using ApacheBench and have discovered something unexpected which I wonder if someone could ...
user avatar
  • 1,049
2 votes
1 answer
1k views

command line http load testing tool that supports gzip / deflate

We use apache as our web server and it has mod_deflate enabled. We have been using httperf to test it for load but we've not been able to get it to talk to the webserver with gzip/deflate encoding ...
user avatar
  • 409
2 votes
1 answer
674 views

How to interpret ab result?

I am using ab to load test my server. As I increase the concurrency number from 1, the requests per sec. goes up. I also see time per request (mean) goes up, while time per request (mean across all ...
user avatar
  • 153