HACK THE SYSTEM: Siege - Chequear la performance de tu HTTPD

RSS

 Seguime por RSS

16 abr 2013

Siege - Chequear la performance de tu HTTPD

Siege, muchos deben conocerla, es una utilidad via comandos para chequear la performance de httpd.
Su uso es sencillo y su interpretacion tambien.

Ej:

siege -v google.com

** SIEGE 2.72
** Preparing 15 concurrent users for battle.
The server is now under siege...
HTTP/1.1 301   0.21 secs:     219 bytes ==> /
HTTP/1.1 301   0.21 secs:     219 bytes ==> /
HTTP/1.1 301   0.21 secs:     219 bytes ==> /
HTTP/1.1 301   0.30 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.31 secs:     219 bytes ==> /
HTTP/1.1 301   0.33 secs:     219 bytes ==> /
HTTP/1.1 301   0.33 secs:     219 bytes ==> /
HTTP/1.1 301   0.33 secs:     219 bytes ==> /
HTTP/1.1 301   0.33 secs:     219 bytes ==> /
HTTP/1.1 301   0.33 secs:     219 bytes ==> /
HTTP/1.1 302   0.21 secs:     222 bytes ==> /
HTTP/1.1 302   0.21 secs:     222 bytes ==> /
HTTP/1.1 302   0.22 secs:     222 bytes ==> /
HTTP/1.1 302   0.26 secs:     222 bytes ==> /
HTTP/1.1 302   0.26 secs:     222 bytes ==> /
HTTP/1.1 302   0.26 secs:     222 bytes ==> /
HTTP/1.1 302   0.27 secs:     222 bytes ==> /
HTTP/1.1 200   0.22 secs:   11121 bytes ==> /
HTTP/1.1 200   0.24 secs:   11029 bytes ==> /
HTTP/1.1 200   0.26 secs:   11009 bytes ==> /
HTTP/1.1 200   0.27 secs:   11073 bytes ==> /
HTTP/1.1 301   0.23 secs:     219 bytes ==> /
^C
Lifting the server siege...      done.

Transactions:                  12 hits
Availability:              100.00 %
Elapsed time:                2.01 secs
Data transferred:            0.05 MB
Response time:                0.61 secs
Transaction rate:            5.97 trans/sec
Throughput:                0.02 MB/sec
Concurrency:                3.66
Successful transactions:          27
Failed transactions:               0
Longest transaction:            0.33
Shortest transaction:            0.21

Si usan el modo -b que no da espera, o usan el modo tradicional... en algunos servidores protegidos contra DDoS, lo tomaran como ataque y... van a ver el mensaje de "[error] socket: unable to connect sock.c:222: Connection refused", asi que no se asusten, no es un bug, es que realmente el httpd esta dropeando conexiones concurrentes. Para evitar eso deben darle un delay... pero ahi ya no tendriamos un stress test, con lo cual, es mas que evidente... que es para poner a punto servidores que uno controla o bien chequear un anti-DDoS de algun sitio.

CentOS y SL, repo rpmforge.

No hay comentarios:

Publicar un comentario

Dejá tu comentario