Welcome! Log In Create A New Profile

Advanced

Re: Nginx slow load of php page

Ian Hobson
May 22, 2009 07:08AM
Y. Yaax wrote:
> I am running nginx with php-fpm by fastcgi. All config settings are
> default. And since few days all php pages became very slow loading. Even
> simplest php script take about ONE minute to execute. Server is not
> loaded - its load is almost alway less then 1 - in average is 0.5, but
> php pages are still loading very very slow!
> Note that on the same server I am running Apache on different ip - not
> connected to nginx and not by proxy with nginx. And php on apache pages
> is loaded very fast, while through nginx it is loaded very slow!
> What can be reason of such problems and how can I fix it?
>
It could be a number of things. Short of memory, waiting for a timeout.

Try taking Apache down and testing then. If php works fast, and slows
again when Apache is restarted
you have your reason. Give it more memory, make other things smaller,
fewer worker threads, etc.

You don't need much. I run nginx on a 256MB VPS server with php and it
flies!

Regards

Ian
Subject Author Posted

Nginx slow load of php page

Y. Yaax May 21, 2009 08:48PM

Re: Nginx slow load of php page

Ian Hobson May 22, 2009 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
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