Welcome! Log In Create A New Profile

Advanced

Re: 答复: server performance issue

Reinis Rozitis
October 26, 2010 11:52AM
> Even I set the pm.max_children=50, I still got lots of errors…...
> Oct 26 22:09:36.354159 [WARNING] [pool www] seems busy (you may need to
> increase start_servers, or min/max_spare_servers), spawning 8 children,
> there are 0 idle, and 12 total children

It's not an errror.
The process manager informs you that the innitial start_server (or
min_spare) is just too low and it will spawn new childs to satisfy all the
incomming requests..

The only Warning you should be worried about is something like this:
Sep 15 17:41:26.901870 [WARNING] [pool www] server reached max_children
setting (70), consider raising it

As that indicates there are no free children and no more will be spawned.


If you don't like such log messages you can increase the pm.start_servers (I
have 20 for example) or disable the Warning messages by setting the
log_level = error



> switch to static process management, dynamic "pm" is a great feature
> to share ressources between several sites hosted on one server. If you
> have only one site on your server, you should use static PM.

In case you have a php script <? sleep(60); ?> no process manager or
configuration will satisfy the wanted req/s if there are more clients (as
the proposed 50 child count) as you end up with each request taking 1 min to
finish. So switching the process manager while could lesser the warning log
entry amount it doesnt really solve the issue (if the cause is slow
application or backends).


As people stated if there are no FPMs slow logs provided the requests may be
as well hanging on a single DB connection and neither nginx nor php itself
(other than FPM killing long running scripts ('request_terminate_timeout'
setting)) can work arround and its hard to give any advices.

The dynamic process manager allows you to somewhat automatically adjust the
best child count (you can set static later if you really preffer that) and
detect the (disaster) events when suddenly something goes wrong (manager
spawns a lot of new childs) but in normal scenario it allows you to consume
as less system resources as possible.

rr


_______________________________________________
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: 227
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