15

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

26

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/
  • 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
5

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.

1

You might want to try the command "ab"

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.