Forum: NGINX Nginx slow load of php page

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Y. Y. (Guest)
on 2009-05-22 04:48
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?
Ian H. (Guest)
on 2009-05-22 15:18
(Received via mailing list)
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
This topic is locked and can not be replied to.