Welcome! Log In Create A New Profile

Advanced

Re: Nginx ridiculously slow with PHP+SSL combined

Max
January 26, 2012 03:24PM
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
Subject Author Posted

Nginx ridiculously slow with PHP+SSL combined

Xeriar January 26, 2012 10:30AM

Re: Nginx ridiculously slow with PHP+SSL combined

Max January 26, 2012 03:24PM

Re: Nginx ridiculously slow with PHP+SSL combined

Xeriar January 27, 2012 12:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready