Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Load Testing

by cei (Monk)
on May 17, 2000 at 23:58 UTC ( [id://12230]=perlquestion: print w/replies, xml ) Need Help??

cei has asked for the wisdom of the Perl Monks concerning the following question:

What's a good way to do load testing for a cgi on a server? Can you use the Benchmark module and get usable data? Or how can one translate Benchmark results into load?

It's probably something simple, but I can't seem to wrap my head around it today.

Replies are listed 'Best First'.
RE: Load Testing
by lhoward (Vicar) on May 18, 2000 at 00:54 UTC
    This isn't a very perl answer, but.....

    You you can use the ab program that comes with Apache for benchmarking/load testing a single .cgi (it can be used to test any HTTP server, not just apache). Very good tool that can test multiple simultaneous requests, etc....

    If you want to test a more realistic load, a simple load generator can be written using the LWP module that will hit multiple pages on your server. Then you can fire off multiple copies of this script until you discover the magic number of simultaneous clients it takes to saturate the load on your server.

    Its also useful to use tools like top to look at the server load statistics (memory vs swap, IO, CPU utilization and queue, which processes are using the most resources, etc...) while you're benchmarking to find the server's bottlenecks.

      Along the lines of the top command, there are also files in /proc dir that you can read that give you numbers that you can work with in your scripts. Like loadavg and meminfo.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://12230]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found