Pogledajte određenu poruku
Staro 29. 08. 2008.   #1
ivanhoe
Ivan Dilber
Sir Write-a-Lot
 
Avatar ivanhoe
 
Datum učlanjenja: 18.10.2005
Lokacija: Bgd
Poruke: 5.320
Hvala: 104
2.344 "Hvala" u 583 poruka
ivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svimaivanhoe je ime poznato svima
Pošaljite poruku preko Skype™ za ivanhoe
Default apache benchmark mi daje cudne rezultate

kucam:
Kôd:
ab -n 500 -c 50 http://192.168.167.2/test_memDB.php
znaci 500 zahteva sa konkurentnoscu 50, a dobijem:

Complete requests: 500
Failed requests: 502

???
Znaci od ukupno 500 reqesta je 502 failed ?

Pri tome kad probam pojedinacni pristup toj skripti ona je jako brza (<2ms) i ne prijavljuje nikakvu gresku, ali ab prijavljuje failures cak i sa vrlo malom konkurentnoscu, tipa -c 10

Jel ima neko ideju o cemu se radi, tj. gde gresim? Jel moze da bude problem u WiFi mrezi i ruteru, da se pokrene neka DoS zastita ?

Evo ga ceo output za gornji primer:

Kôd:
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.167.2 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests


Server Software:        Apache/2.2.3
Server Hostname:        192.168.167.2
Server Port:            80

Document Path:          /test_memDB.php
Document Length:        319 bytes

Concurrency Level:      50
Time taken for tests:   0.853666 seconds
Complete requests:      500
Failed requests:        502
   (Connect: 0, Length: 502, Exceptions: 0)
Write errors:           0
Total transferred:      162641 bytes
HTML transferred:       64967 bytes
Requests per second:    585.71 [#/sec] (mean)
Time per request:       85.367 [ms] (mean)
Time per request:       1.707 [ms] (mean, across all concurrent requests)
Transfer rate:          185.08 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1   10   6.0     10      34
Processing:     6   58  59.6     49     368
Waiting:        5   57  59.6     48     367
Total:         14   69  59.4     59     375

Percentage of the requests served within a certain time (ms)
  50%     59
  66%     69
  75%     74
  80%     78
  90%     86
  95%     98
  98%    370
  99%    373
 100%    375 (longest request)
__________________
Leadership is the art of getting people to want to do what you know must be done.
ivanhoe je offline   Odgovorite uz citat