0

We have a production server running Apache that sometimes crashes because of too much load, I'm trying to replicate the situation on a test server in order to test Monit. So my goal here is to overload Apache to make the service crash, or at least the render a website unavailable.

I was trying to do that with apache AB : ab -n 100000 -c 1000 http://webtest/ but it doesn't seem to be enough, despite /server-status/ showing all workers active... Is there a more powerfull alternative or a more efficient way to use ab to bring Apache to his knees?

Thanks!

Irrational
  • 25
  • 2
  • 6

4 Answers4

1

The most promising of free and open source load testing tools are:

If you need to reproduce your production outage exactly I would recommend going for Apache JMeter, see Stop Making Assumptions! Learn How to Replay Your Production Traffic With JMeter article for details.

Dmitri T
  • 531
  • 2
  • 2
0

Try using siege from another server or servers that have a reasonable CPU and network connection. Interestingly I found that testing from another server was able to put more load on than testing from the server with Apache, even though there was plenty of CPU spare. This is with my main server a t2.micro instance in AWS, with plenty of CPU credits.

Make sure you set benchmark = false in the siege configuration file (read the documentation). Latency between the servers is key, so in the same data center is best. I used an AWS m3.medium spot instance for around 1c/hr.

Tim
  • 30,383
  • 6
  • 47
  • 77
0

I really like using gor for load testing. This tool allows me to log production traffic and then "replay" the traffic at a time I feel comfortable testing. It also allows you to replay traffic at different speeds. For example:

# Replay from file on 2x speed 
gor --input-file "requests.gor|200%" --output-http "staging.com"

Using production traffic to test is by far the best method. Spamming your home page 500k times will not give you reliable statistics.

-- https://github.com/buger/gor

Read through the github page to get an idea of all the functions available. Good luck!

QuentinMoss
  • 822
  • 7
  • 15
0

I like using Xceptance XLT for load testing.

Matt Clark
  • 655
  • 1
  • 8
  • 24