Poor performance in serving of static files
lists at scratchdisk.com
Mon Jul 18 09:16:06 UTC 2011
I've tried increasing worker_processes and turning off sendfile already, no difference. The modules did not seem to affect performance, as I also compiled a fresh Nginx from source myself and saw no difference. I then switched back to the package provided by Debian Backports. I am now using the package nginx-light, with still the same performance.
On 18 Jul 2011, at 10:06, Igor Sysoev wrote:
> On Mon, Jul 18, 2011 at 09:45:22AM +0100, Jürg Lehni wrote:
>> I just did that, with no measurable improvement.
>> I am aware that delays happen on both URLs sometimes, but reloading the full site with an emptied browser cache for example takes about one second on Apache, and double on Nginx. And without having done any proper benchmarking, hitting any of these rendered type pages after that just feels much slower and less fluid on Nginx. I am really surprised!
>> And I am still wondering: Could it be that for a low traffic site, Apache could actually outperform Nginx noticeably?
> You can try to increase number of worker_processes, say to 4-8 and
> turn off sendfile. Also, I can not say how theses third-party modules
> may affect in perfomance:
>> On 18 Jul 2011, at 07:59, Igor Sysoev wrote:
>>> On Mon, Jul 18, 2011 at 07:03:03AM +0100, Jürg Lehni wrote:
>>>> You are right, so here it is:
>>>> The same site running on Nginx:
>>> Sometimes I see some delays on both URLs.
>>> You can try to increase nginx workers priority:
>>> worker_processes NN;
>>> worker_priority -10; # man nice
>>> Igor Sysoev
>>> nginx mailing list
>>> nginx at nginx.org
>> nginx mailing list
>> nginx at nginx.org
> Igor Sysoev
> nginx mailing list
> nginx at nginx.org
More information about the nginx