You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2021/09/07 20:13:43 UTC
svn commit: r1893073 - /httpd/httpd/trunk/server/mpm/event/event.c
Author: ylavic
Date: Tue Sep 7 20:13:42 2021
New Revision: 1893073
URL: http://svn.apache.org/viewvc?rev=1893073&view=rev
Log:
mpm_event: Follow up to r1893014: log when children are not spawned.
Log at trace5 level when active_daemons >= active_daemons_limit and we won't
spawn children. Reset free_length to avoid negative value in this case too.
Modified:
httpd/httpd/trunk/server/mpm/event/event.c
Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1893073&r1=1893072&r2=1893073&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Tue Sep 7 20:13:42 2021
@@ -3238,7 +3238,18 @@ static void perform_idle_server_maintena
free_length = retained->idle_spawn_rate[child_bucket];
}
if (free_length + active_daemons > active_daemons_limit) {
- free_length = active_daemons_limit - active_daemons;
+ if (active_daemons < active_daemons_limit) {
+ free_length = active_daemons_limit - active_daemons;
+ }
+ else {
+ ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, ap_server_conf,
+ "server is at active daemons limit, spawning "
+ "of %d children cancelled: %d/%d active, "
+ "rate %d", free_length,
+ active_daemons, active_daemons_limit,
+ retained->idle_spawn_rate[child_bucket]);
+ free_length = 0;
+ }
}
if (retained->idle_spawn_rate[child_bucket] >= 8) {
ap_log_error(APLOG_MARK, APLOG_INFO, 0, ap_server_conf, APLOGNO(00486)