Webserver stress-test

Pagina: 1
Acties:

  • Bigs
  • Registratie: Mei 2000
  • Niet online
Bestaat er iets als een stress-test voor webservers? Ik heb nu een server die binnenkort de lucht in gaat en hij draait nu netjes, maar ik wil hem even flink het vuur aan de schenen leggen voordat we hem echt gaan gebruiken.
Eigenlijk zoek ik gewoon iets als een PHP pagina met daarin een paar flinke MySQL queries ofzo die ik dan vanaf een of meer andere computers constant opvraag.
Weet iemand of zoiets bestaat (of heeft ie toevallig zelf iets gemaakt?).. scheelt mij weer een hoop werk. Het gaat dus vooral om de performance van Apache, met name omdat ik de schaalbaarheid wil testen. Disk performance etc. heb ik al gemeten, dat zit wel goed.

Verwijderd

[root@router ~]# /usr/local/apache/bin/ab
/usr/local/apache/bin/ab: wrong number of arguments
Usage: /usr/local/apache/bin/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.
-V Print version number and exit
-k Use HTTP KeepAlive feature
-h Display usage information (this message)

Verwijderd

mysql heeft trouwens de 'benchmark()' functie:

mysql> select BENCHMARK(1000000,encode("hello","goodbye"));
+----------------------------------------------+
| BENCHMARK(1000000,encode("hello","goodbye")) |
+----------------------------------------------+
| 0 |
+----------------------------------------------+
1 row in set (4.74 sec)

  • Bigs
  • Registratie: Mei 2000
  • Niet online
Koelie :) tnx

  • jep
  • Registratie: November 2000
  • Laatst online: 05-05 11:28

jep

of je schrijft gewoon een scriptje die er extreem vaak per sec naartoe telnet vanaf een paarbakken, reken erop dattie hard gaat:)

  • Ritchie
  • Registratie: Juni 1999
  • Laatst online: 08-05 16:38
Ik moet ook zoiets hebben, maar dan voor html en asp.
Dank u!

- NAC Breda -

Pagina: 1