You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/02/11 09:24:11 UTC
DO NOT REPLY [Bug 41590] New: - Exceed Serverlimit directive when mod_php are using
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
Summary: Exceed Serverlimit directive when mod_php are using
Product: Apache httpd-2
Version: 2.2.4
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: regression
Priority: P2
Component: worker
AssignedTo: bugs@httpd.apache.org
ReportedBy: fly-away@user.i.zabor.com
I am testing apache-2.2.4 with mpm worker on FreeBSD 6.1.
I found the bug when I runned bench mark test using jmeter.
My settings:
<IfModule mpm_worker_module>
ServerLimit 12
MaxClients 768
MinSpareThreads 2
MaxSpareThreads 5
ThreadsPerChild 64
MaxRequestsPerChild 1000
</IfModule>
I found a lot of the httpd prosesses more than server-limit
directive, somtimes 25 or above.
Also server-status page have a lot of threads in "Sending Reply" status -
generally for links to .php (used mod_php 5.2.0 and 5.2.1 - no difference).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41590] - Exceed Serverlimit directive when mod_php are using
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
------- Additional Comments From fly-away@user.i.zabor.com 2007-02-13 04:18 -------
>In a scenario where there are many child processes trying to exit but held up
by
>a small number of long-running requests, exceeding ServerLimit (no longer
>counting those exiting processes) allows the server to continue to handle the
>allowed load (MaxClients).
MaxClients=ServerLimit*ThreadsPerChild
ThreadsPerChild is a constant.
Where can I see the reason to exceeding ServerLimit for "handle the allowed
load (MaxClients)."?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41590] - Exceed Serverlimit directive when mod_php are using
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
------- Additional Comments From fly-away@user.i.zabor.com 2007-02-11 09:45 -------
>It seems that the PHP requests aren't finishing, which triggers the growth in
processes.
I think it so, but isn't must apache kill his old child follow ServerLimit
directive?
>You hit MaxRequestsPerChild or MaxSpareThreads, but because the PHP
>request is still running the child process can't actually exit.
Is this normal?
I think, catching all bugs in apache modules (special in mod_php) match more
hard task then implementation mechanism of harsh killing old child.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41590] - Exceed Serverlimit directive when mod_php are using
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
trawick@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From trawick@apache.org 2007-02-11 04:57 -------
Read
http://httpd.apache.org/docs/2.2/mod/worker.html
starting with
"In addition to the set of active child processes..."
It seems that the PHP requests aren't finishing, which triggers the growth in
processes. You hit MaxRequestsPerChild or MaxSpareThreads, but because the PHP
request is still running the child process can't actually exit.
Your MaxSpareThreads and MaxRequestsPerChild values ensure frequent process
creation overhead. I would recommend 192 and 0 for those directives, respectively.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41590] - Exceed Serverlimit directive when mod_php are using
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
------- Additional Comments From trawick@apache.org 2007-02-11 17:40 -------
There is no limit on how long a request can take, so the server can't abruptly
terminate requests except for "apachectl stop" or "apachectl restart"
processing. The server cannot distinguish a hung request from a lengthy query
or computation.
In a scenario where there are many child processes trying to exit but held up by
a small number of long-running requests, exceeding ServerLimit (no longer
counting those exiting processes) allows the server to continue to handle the
allowed load (MaxClients).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41590] - Exceed Serverlimit directive when mod_php are using
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41590
------- Additional Comments From trawick@apache.org 2007-02-13 04:39 -------
>MaxClients=ServerLimit*ThreadsPerChild
>ThreadsPerChild is a constant.
In a child process trying to gracefully exit, there are actually fewer than
ThreadsPerChild active threads handling requests. Threads which have finished
their last request will have exited.
MaxClients and the reserved scoreboard space are still a constant. If there are
gracefully exiting child processes and a new process is created and there is
unused process slot in the scoreboard, the new process will share a slot with a
gracefully exiting child process, and will only be able to create as many
threads as have exited from the gracefully exiting process. So the number of
threads in that slot for the two processes doesn't exceed ThreadsPerChild.
I suggest reading/studying/gdb-ing the worker MPM source code if you want more
information.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org