18

There seems to be something taking our server off-line and we are having trouble tracing the cause, if it is down to load of a particular site or a script. It does seem to be Apache related.

Does anyone know of any Linux based tools we can run from another server to stress test our problematic server by seeing how many requests it takes before it goes down?

Thanks, Shadi

Shadi Almosri
  • 303
  • 1
  • 3
  • 7

4 Answers4

29

ApacheBenchmark works fairly well and is included in most (if not all) installs of Apache2.

 ab -n 1000 -c 5 -C "somecookie=rawr" http://ourwebsite.com/
gspr
  • 103
  • 3
grufftech
  • 6,620
  • 4
  • 35
  • 37
  • 1
    Another good one: `ab -kc 10 -t 30 http://yourwebsite.com/`. It opens 10 connections, keeps them alive and makes as many concurrent requests as possible. – CaptJak Sep 21 '16 at 21:25
6

You can also use Jakarta's Jmeter by Apache.

http://jakarta.apache.org/jmeter/index.html

I used this to stress test my server, and it is quite handy to run from outside computers and workstations with windows, highly configurable, and offers lots of pretty graphs and information especially on failures and what failures return and when the failures happen.

They also of course have Linux builds, but I have not used these.

Joshua Enfield
  • 3,404
  • 8
  • 41
  • 58
2

Take a look of different opensource tools that can help you to do load testing for webservers.

http://blog.carlosgomez.net/2010/03/web-load-testing-with-opensource-tools.html

cargom98
  • 76
  • 1
0

I know this is quite an old question :-).

However, the HTTP benchmarking tool wkr is getting more and more popular these days.

idrositis
  • 101
  • 2