Is there a tool (preferably a web service) that can stress test our site? We're having problems with our site going down once we have about 100 concurrent users. Forums seem to suggest I need to tweak my httpd.conf
. I plan to try to tweak httpd.conf, but need to know if the tweaks actually did anything. So stress testing it after each configuration change might be my plan of attack. Suggestions?
![](../../users/profiles/87907.webp)
- 247
- 1
- 2
- 8
5 Answers
If you're using Apache you can use a utility called ab
(Apache Bench).
From the fine manual:
SUMMARY
ab
is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
It's that last bit that you'll be interested in.
![](../../users/profiles/64706.webp)
- 6,193
- 23
- 28
-
1Example usage: ab -n 100 -c 20 http://... – Coops Aug 09 '11 at 08:37
-
these days wrk is more popular... :) – rogerdpack Aug 14 '19 at 02:37
You could also try JMeter
Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.
![](../../users/profiles/89959.webp)
- 1,823
- 12
- 16
You can try siege, very simple and powerfull tool. By the way check limit of clients in apache.conf, look for "MaxClients" parameter.
![](../../users/profiles/72582.webp)
- 1,080
- 7
- 8
-
For openSUSE, it is available via the [Benchmark](http://download.opensuse.org/repositories/benchmark/openSUSE_12.3/) community repository – bwDraco Sep 29 '13 at 04:47
There are a few nice sites out there for testing, if you are looking for a web service for load testing. To name a few...
http://www.gomez.com/ (Paid service)
http://loadimpact.com/ (free up to 50 virtual users)
https://browsermob.com/website-load-testing ( free basic account)
![](../../users/profiles/14572.webp)
- 178
- 1
- 1
- 5
You can use the curl library for stress testing.
![](../../users/profiles/28988.webp)
- 135
- 7
-
-
Using CURL you can programmatically create heavy load and induce Race conditions as well. There might be other tools as well, if you are totally new to CURL, you might as well learn a newer framework. Go through this link as a starting point http://brainflush.wordpress.com/2008/03/18/using-curl-for-testing-web-applications/ – Geek Aug 09 '11 at 06:22
-
I can understand the DOWN Vote but there are things you can ONLY do with CURL which other UI testing frameworks dont provide. – Geek Aug 09 '11 at 07:44
-
I'll give you a +1 to counter the slight unfair -1. Yes, you can write your own testing library with libcurl, but it's probably quite a effort given the readily available tools which do the job already. – Coops Aug 09 '11 at 08:39
-
-
This link shows some examples of curl -s with parameters http://servermonitoringhq.com/blog/how_to_quickly_stress_test_a_web_server – ghchinoy Sep 25 '13 at 02:42