|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hello,
I made a message board and i want to check how it handles loads.. now i don't know many people who'll be willing to login in and perform stuff on it all the time so i want to know if there's any other way i can simulate a heavy usage environment.. is there any way i can test the database and my scripts??? i'm using mysql at the backend with php at the front... i thought of writing scripts which can perhaps simulate users but that means that my server and clients are running on the same machine and that really wouldn't give a correct picture of how the server is taking the load.. any help will be appreciated cheers p.s. pasted this earlier in algorithms
__________________
it's electric baaaabbbbbbyyyyyy!!!
|
|
#2
|
|||
|
|||
|
Try to use Apache Bench located in the /bin directory of your apache folder.
Anonther Tool which has to be good, I could not test it myself yet ist Stress Test by Microsoft, may not be the exact name. Search the microsoft site and you will find it. It was designed for asp but I read it works with php too. P.S.: length errors on ab ( apachebench ) occure if the returned content differs in length - so if something changes on your page each time ( banner roation or a static clock ) ignore this error (this took me a few hours to find out ). |
|
#3
|
|||
|
|||
|
Quote:
run your load-test scripts on another machine??? |
|
#4
|
||||
|
||||
|
I'm not understanding the ab man page...
Can somone show me the simplest use of this command?
__________________
TommyWillB Apple Power Mac G4 867mhz, 1GB RAM nVIDIA geforce 2 (TwinView) Apple Studio 17" flat screen + Compaq 17" 2x60GB ATA drives jeffntom.com hosted on Mac OS X 10.3.4 / Apache 1.3.29 / PHP 4.3.2 |
|
#5
|
||||
|
||||
|
Code:
ab -n200 -c50 "http://www.domain.com/cgi-bin/script.pl?param1=blah¶m2=blahblah" will hammer the domain for 200 requests with 50 concurrent connections. Beware, though, this is a pretty resource intensive thing to do to your server. |
|
#6
|
||||
|
||||
|
Perfect!
I was simply missing the quotes around the URL. Thanks a lot. Next I'll have to figure out the best way to dump this to something like a flat .csv. The other cool thing, even though this is ApacheBench, it does not have any trouble hitting any site regardless of Web server. ![]() Last edited by TommyWillB : February 24th, 2002 at 01:01 PM. |
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > server load testing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|