Simple load testing using http_load
Found a simple load testing tool called http_load that can be used to test the throughput of your website.
Basically after downloading the tar file and doing a “make”, the executable http_load will be available. Create a file(i call it “urls”) to list down the urls that you want to test. Then run this command,
./http_load -rate 5 -seconds 10 urls | grep msecs/connect
Output: msecs/connect: 15.9684 mean, 46.466 max, 9.378 mi
I believe monit can also monitor remote hosts, but http_load is a quick way to do so with an easy setup in 1 minute.
http_load looks pretty good.
I often just resort to the ever reliable Apache Bench, which ships with Apache and Apache2.
On Debian it resides at /usr/sbin/ab
The command below will execute 10000 requests with a concurrency level of 150
ab -n 10000 -c 150 http://your-site/
I’ll be taking a look at http_load though, it looks pretty useful.
Scott
August 8, 2008 at 1:24 am