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.
49
questions
2
votes
2
answers
4k
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 ...
0
votes
0
answers
267
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 ...
0
votes
1
answer
604
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 -...
0
votes
1
answer
86
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 ...
0
votes
0
answers
42
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
...
6
votes
3
answers
17k
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 ...
1
vote
0
answers
640
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, ...
1
vote
0
answers
116
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:
...
1
vote
2
answers
11k
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 ...
25
votes
5
answers
52k
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 ...
2
votes
5
answers
7k
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 ...
1
vote
1
answer
423
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. ...
1
vote
0
answers
663
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 ...
2
votes
1
answer
7k
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....
1
vote
0
answers
1k
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 ...
2
votes
0
answers
138
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 ...
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 ...
0
votes
1
answer
439
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 (...
2
votes
1
answer
493
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 ...
0
votes
1
answer
1k
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 ...
1
vote
3
answers
756
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 ...
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).
...
0
votes
1
answer
133
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 ...
41
votes
1
answer
95k
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 [~/...
15
votes
1
answer
28k
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 ...
1
vote
0
answers
297
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 ...
0
votes
1
answer
785
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 ...
1
vote
1
answer
893
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 ...
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 ...
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: ...
2
votes
1
answer
2k
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://...
18
votes
4
answers
11k
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 ...
1
vote
2
answers
119
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/...
7
votes
2
answers
13k
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 ...
0
votes
1
answer
624
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 ...
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/...
2
votes
2
answers
306
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 ...
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 ...
18
votes
2
answers
26k
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 ...
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 ...
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 ...
2
votes
0
answers
589
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 ...
35
votes
4
answers
44k
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.
29
votes
1
answer
10k
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.
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 <$...
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 ...
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 ...
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 ...
2
votes
1
answer
711
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 ...