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
1
vote
0 answers

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 5.3 and MySQL 5.5.35. I need to make some testing…
1
vote
3 answers

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 contradictory results. The machine details: CentOS-6.4…
jackJoe
  • 121
  • 6
1
vote
0 answers

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 concurrency of 1000. I get this error after a fraction…
gremo
  • 339
  • 1
  • 4
  • 20
1
vote
1 answer

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 expensive API call (which cache via Memcached): 100…
1
vote
3 answers

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 difference between running ab on the server and running…
Mickey Shine
  • 939
  • 4
  • 17
  • 33
1
vote
2 answers

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/ Duration is 4 seconds. When I do (at the same…
Aeolun
  • 111
  • 3
1
vote
1 answer

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/index.php It doesn't request the images at all…
Lars
  • 578
  • 2
  • 8
  • 18
1
vote
1 answer

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 to use it I have an SSL handshake failure message…
Simone
  • 11
  • 1
  • 2
0
votes
1 answer

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 -c 350 -n 20000 -H…
abbood
  • 1,127
  • 4
  • 13
  • 21
0
votes
1 answer

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 seems to bring my VPS to a crawl. Any advice?
NerdOfLinux
  • 115
  • 6
0
votes
0 answers

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

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 Time per req 1.6 ms (mean across requests) ab -n…
Glasnhost
  • 591
  • 4
  • 10
  • 20
0
votes
1 answer

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 seconds) there are already 3,000 visitors? So the…
jaYPabs
  • 299
  • 1
  • 4
  • 20
0
votes
1 answer

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 (like firewall) that blocking this? curl is fine. ab…
ajreal
  • 183
  • 12
0
votes
1 answer

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 details: root@VM8-4:~# dpkg -l | egrep apache ii …
mav_2k
  • 141
  • 1
  • 3
  • 8
0
votes
2 answers

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). However, if I request the content with Firefox, the…
Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35