[mod_python] Load Testing Tools

Graham Dumpleton grahamd at dscpl.com.au
Thu Aug 18 01:46:17 EDT 2005


IGP wrote ..
> Graham Dumpleton wrote:
> >You can start with "ab". This tool is provided with Apache and can be
> used
> >to do some simple load testing. BTW, you keep stating version 1.3.4 of
> >mod_python. Are you really sure about that?
> >
> >Usage: ab [options] [http://]hostname[:port]/path
> >Options are:
> >    -n requests     Number of requests to perform
> >    -c concurrency  Number of multiple requests to make
> >    -t timelimit    Seconds to max. wait for responses
> >    -p postfile     File containg data to POST
> >    -T content-type Content-type header for POSTing
> >    -v verbosity    How much troubleshooting info to print
> >    -w              Print out results in HTML tables
> >    -i              Use HEAD instead of GET
> >    -x attributes   String to insert as table attributes
> >    -y attributes   String to insert as tr attributes
> >    -z attributes   String to insert as td or th attributes
> >    -C attribute    Add cookie, eg. 'Apache=1234' (repeatable)
> >    -H attribute    Add Arbitrary header line, eg. 'Accept-Encoding: zop'
> >                    Inserted after all normal header lines. (repeatable)
> >    -A attribute    Add Basic WWW Authentication, the attributes
> >                    are a colon separated username and password.
> >    -P attribute    Add Basic Proxy Authentication, the attributes
> >                    are a colon separated username and password.
> >    -X proxy:port   Proxyserver and port number to use
> >    -V              Print version number and exit
> >    -k              Use HTTP KeepAlive feature
> >    -d              Do not show percentiles served table.
> >    -S              Do not show confidence estimators and warnings.
> >    -g filename     Output collected data to gnuplot format file.
> >    -e filename     Output CSV file with percentages served
> >    -h              Display usage information (this message)
> >
> >
> Sorry,
> I am using mod-python version 3.1.4
> If i want to make 100 concurrent requests to a particular host how do i
> make it using ab tool
> is it > ab -n 100 -c 100 host
> or just >  ab -c 100 host

I would suggest you try reading the manual page for "ab". It will explain
the options in more detail.

The first of the above will cause 100 concurrent requests. In the second,
although you specify 100 concurrent, it will only do one request in total
because you didn't specify a number.

BTW, you might want to be careful about bombarding the list with multiple
emails on slightly different variations of the same topic. Do this and you
are less likely to get a useful response than if you had clearly explained
it all in one email.

Graham


More information about the Mod_python mailing list