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 2021/09/22 15:38:06 UTC

[Bug 65592] New: mpm_event does not create new child after MaxConnectionsPerChild is hit

https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

            Bug ID: 65592
           Summary: mpm_event does not create new child after
                    MaxConnectionsPerChild is hit
           Product: Apache httpd-2
           Version: 2.4.49
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: mpm_event
          Assignee: bugs@httpd.apache.org
          Reporter: matt.zuba@goodwillaz.org
  Target Milestone: ---

I've encountered issues on multiple servers running Apache 2.4.49 where we have
MaxConnectionsPerChild set for the event mpm.  When child processes die after
this limit his hit, the mpm is not creating new processes which stop Apache
from serving any requests.  This issue did not exist in 2.4.48.

The easiest way for me to reproduce with the most simplistic example is with
the httpd docker images.  When modifying the mpm_event conf and setting all
values to 1 (for ease of testing), 2.4.49 will cease to serve any requests,
whereas 2.4.48 will continue to serve request after request.

=====================
<IfModule mpm_event_module>
    StartServers             1
    MinSpareThreads         1
    MaxSpareThreads        1
    ThreadsPerChild         1
    MaxRequestWorkers      1
    MaxConnectionsPerChild   1
</IfModule>
=====================

I can produce some repos with Dockerfiles in them if necessary.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

alex2grad@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alex2grad@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

--- Comment #6 from jerry@jmweb.net ---
I found instructions to patch Apache here:
https://www.linuxquestions.org/questions/solaris-opensolaris-20/steps-to-apply-the-patch-apache-918907/#post4551988

Thanks for the patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

Graham Leggett <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Graham Leggett <mi...@apache.org> ---
Backported to v2.4.50.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

--- Comment #1 from Ruediger Pluem <rp...@apache.org> ---
Created attachment 38046
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38046&action=edit
Correctly account processes

Can you please try if the attached patch fixes your issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk,
                   |                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

--- Comment #5 from jerry@jmweb.net ---
(In reply to Matt Zuba from comment #2)
> Thank you for the quick patch.  I've applied it on top of the Apache source
> for Ubuntu from Ondřej Surý found at
> https://launchpad.net/~ondrej/+archive/ubuntu/apache2 and it has solved the
> problem in 2.4.49.

This sounds exactly like what I am experiencing with my recent upgrade to
2.4.49. I submitted my issue to the mailing list
(https://httpd.markmail.org/search/?q=#query:+page:1+mid:mwn5orzpqoq4vwii+state:results).

May I ask how exactly you "applied the patch on top of the Apache source"?

Also, what are the chances of an immediate release with this patch given the
significance of this issue in production servers?

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

--- Comment #2 from Matt Zuba <ma...@goodwillaz.org> ---
Thank you for the quick patch.  I've applied it on top of the Apache source for
Ubuntu from Ondřej Surý found at
https://launchpad.net/~ondrej/+archive/ubuntu/apache2 and it has solved the
problem in 2.4.49.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65592] mpm_event does not create new child after MaxConnectionsPerChild is hit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65592

--- Comment #3 from Ruediger Pluem <rp...@apache.org> ---
Committed to trunk a r1893520.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org