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.

50 questions
40
votes
1 answer

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 [~/httpd]# yumdownloader httpd Loaded plugins:…
Mehdi Yeganeh
  • 453
  • 1
  • 5
  • 12
35
votes
4 answers

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.
arnorhs
  • 465
  • 1
  • 5
  • 8
25
votes
1 answer

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.
kurious
  • 811
  • 7
  • 7
23
votes
5 answers

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 download ~3 MB video files. Naturally I wanted to see…
Akshaya Shanbhogue
  • 332
  • 1
  • 2
  • 6
17
votes
4 answers

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 receives a HTTP POST. I want to send this same POST to…
Bernard Bay
  • 171
  • 1
  • 4
16
votes
2 answers

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 successful. I am on a MacBook Pro 10.7.2. What is…
chantheman
  • 335
  • 1
  • 3
  • 8
14
votes
1 answer

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 option) Thanks in advance
hotips
  • 533
  • 4
  • 8
  • 18
7
votes
2 answers

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 500 requests Completed 600 requests Completed 700…
Alan Hoffmeister
  • 73
  • 1
  • 1
  • 3
6
votes
3 answers

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 sysadmincasts tutorial series. I'm not able to successfully…
mbigras
  • 259
  • 1
  • 3
  • 11
5
votes
1 answer

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 ab locally has very high requests/per second, but…
5
votes
1 answer

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 serve more than 3 or 4 requests (even without…
janeden
  • 237
  • 2
  • 6
4
votes
3 answers

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 <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam…
Sam Williams
  • 69
  • 1
  • 4
4
votes
1 answer

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 was wondering how most people approach them: A/B…
Ken
  • 181
  • 1
  • 4
3
votes
1 answer

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: 3531, Exceptions: 3424) Write errors:          …
joedevon
  • 236
  • 3
  • 8
3
votes
2 answers

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 explain for me. In my Nginx config I have a…
Ludo
  • 1,049
  • 3
  • 10
  • 11
1
2 3 4