26 января 2012, 19:31 от "Xeriar" <nginx-forum@nginx.us>:
>
> This seems like a rather enormous discrepancy,
> but I have no idea where to look. Does anyone have
> an idea of what might be going on?
Take a look at this and you will probably notice
what is going on:
> ab -k -c 900 -n 90000 http://amaterasu/test.php
> Complete requests: 90000
> Failed requests: 5754
> Keep-Alive requests: 0
> Transfer rate: 1005.38 [Kbytes/sec] received
>
> ab -k -c 900 -n 90000 https://amaterasu/robots.txt
> Complete requests: 90000
> Failed requests: 0
> Keep-Alive requests: 89708
> Transfer rate: 8389.77 [Kbytes/sec] received
>
> ab -k -c 900 -n 9000 https://amaterasu/test.php
> Complete requests: 9000
> Failed requests: 445
> Keep-Alive requests: 0
> Transfer rate: 63.92 [Kbytes/sec] received
The robots.txt via SSL test shows 89708 of 90000
Keep-Alive requests, which means the same SSL
connection was reused 99.67 % of the time, which
is why you got such good test results.
But the test.php via SSL test shows 0 out of 9000
Keep-Alive requests, which means that a new SSL
connection was established for each and every
successful request. Considering how CPU intensive
SSL is, your test results are really not that bad.
Max
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx