Welcome! Log In Create A New Profile

Advanced

Re: server performance issue

Ian Hobson
October 26, 2010 03:34PM
On 26/10/2010 10:30, SplitIce wrote:
> Ok although I dont know the scale of your site that formulae always
> works, A decent response time for an application is 0.05s, even most
> forums will return 0.2s so if you are getting values higher than that
> then your problem is in your script.
>
> This isnt really a nginx problem, its more PHP related.
>
> On Tue, Oct 26, 2010 at 8:24 PM, Xin Liu <liuxin84@gmail.com
> <mailto:liuxin84@gmail.com>> wrote:
>
> It's getting worse and worse.
> From php-fpm.log, there is no error.
> But from nginx error.log, there are lots of errors
>
>
> [error] 21819#0: *16895 connect() to unix:/tmp/php-cgi.sock
> failed (11: Resource temporarily unavailable) while connecting to
> upstream, client: 119.145.137.49, server: localhost,......
>
>
I think this means that nginx has tried to pass a request to php, but
php is unable to accept it due to having too much work to do. It can't
make any more workers, and so it has to wait for a worker to finish
before it can accept the request.

Most probable is that the most recent change to the php script has
caused some form of looping or a very inefficient lookup in the database
(Has in index been removed recently?)

Try going back to the php code and database before the last change, and
seeing if that improves things.

Regards

Ian

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

server performance issue

Xin Liu October 26, 2010 02:46AM

Re: server performance issue

SplitIce October 26, 2010 02:52AM

Re: server performance issue

Xin Liu October 26, 2010 04:04AM

Re: server performance issue

SplitIce October 26, 2010 04:16AM

Re: server performance issue

Xin Liu October 26, 2010 05:34AM

Re: server performance issue

SplitIce October 26, 2010 05:34AM

Re: server performance issue

Phil Bayfield October 26, 2010 06:52AM

Re: server performance issue

Phil Bayfield October 26, 2010 06:56AM

Re: server performance issue

SplitIce October 26, 2010 07:02AM

Re: server performance issue

Phil Bayfield October 26, 2010 07:10AM

Re: server performance issue

iberkner October 26, 2010 07:40AM

Re: server performance issue

Phil Bayfield October 26, 2010 08:02AM

答复: server performance issue

Xin Liu October 26, 2010 10:18AM

Re: 答复: server performance issue

Phil Bayfield October 26, 2010 10:26AM

Re: 答复: server performance issue

iberkner October 26, 2010 10:26AM

答复: 答复: server performance issue

Xin Liu October 26, 2010 12:06PM

Re: 答复: server performance issue

Jérôme Loyet October 26, 2010 10:32AM

Re: 答复: server performance issue

Reinis Rozitis October 26, 2010 11:52AM

Re: 答复: server performance issue

Splitice October 26, 2010 05:20PM

Re: server performance issue

Ian Hobson October 26, 2010 03:34PM

Re: server performance issue

António P. P. Almeida October 26, 2010 03:20AM

Re: server performance issue

SplitIce October 26, 2010 03:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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