https://bz.apache.org/bugzilla/show_bug.cgi?id=65196
Bug ID: 65196
Summary: All child processes are temporarily terminated.
Product: Apache httpd-2
Version: 2.4.46
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mpm_worker
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In the following environment where multiple Listen directives are defined, 6
requests are received at the same time, and after HTTP request processing is
completed, all child processes are temporarily terminated. ThreadsPerChild is
set to 1 for ease of explanation.
httpd.conf:
----------------------------------------------
Listen 80
Listen 8080
ServerLimit 50
StartServers 5
MinSpareThreads 5
MaxSpareThreads 10
ThreadsPerChild 1
MaxRequestWorkers 50
MaxConnectionsPerChild 0
----------------------------------------------
The process status is shown in the output of the following command.
# pstree -p `cat /opt/apache24/logs/httpd.pid`
Isn't it a bug that all child processes are temporarily terminated in (3)?
We have confirmed that the listener thread does not terminate immediately in
the termination process of the child process.
If it's not a bug, please tell me why.
(1) It is in the state where httpd is started.
----------------------------------------------
Tue Mar 16 13:38:09 JST 2021
httpd(4035)-+-httpd(4036)-+-{httpd}(4046)
| `-{httpd}(4047)
|-httpd(4037)-+-{httpd}(4048)
| `-{httpd}(4049)
|-httpd(4038)-+-{httpd}(4050)
| `-{httpd}(4051)
|-httpd(4039)-+-{httpd}(4052)
| `-{httpd}(4053)
`-httpd(4040)-+-{httpd}(4054)
`-{httpd}(4055)
----------------------------------------------
(2) 6 requests are being processed.
----------------------------------------------
Tue Mar 16 13:38:26 JST 2021
httpd(4035)-+-httpd(4036)-+-{httpd}(4046)
| `-{httpd}(4047)
|-httpd(4037)-+-{httpd}(4048)
| `-{httpd}(4049)
|-httpd(4038)-+-{httpd}(4050)
| `-{httpd}(4051)
|-httpd(4039)-+-{httpd}(4052)
| `-{httpd}(4053)
|-httpd(4040)-+-{httpd}(4054)
| `-{httpd}(4055)
|-httpd(4101)-+-{httpd}(4103)
| `-{httpd}(4104)
|-httpd(4109)-+-{httpd}(4113)
| `-{httpd}(4114)
|-httpd(4110)-+-{httpd}(4115)
| `-{httpd}(4116)
|-httpd(4121)-+-{httpd}(4133)
| `-{httpd}(4134)
|-httpd(4122)-+-{httpd}(4135)
| `-{httpd}(4136)
|-httpd(4123)-+-{httpd}(4129)
| `-{httpd}(4130)
`-httpd(4124)-+-{httpd}(4131)
`-{httpd}(4132)
----------------------------------------------
(3) The following is the state transition after the request processing is
completed.
----------------------------------------------
Tue Mar 16 13:38:38 JST 2021
httpd(4035)-+-httpd(4036)
|-httpd(4037)
|-httpd(4038)
|-httpd(4039)
|-httpd(4040)
|-httpd(4101)
|-httpd(4110)
|-httpd(4121)
|-httpd(4122)
|-httpd(4123)
`-httpd(4124)
----------------------------------------------
Tue Mar 16 13:38:39 JST 2021
httpd(4035)---httpd(4213)-+-{httpd}(4215)
`-{httpd}(4216)
----------------------------------------------
Tue Mar 16 13:38:40 JST 2021
httpd(4035)-+-httpd(4213)-+-{httpd}(4215)
| `-{httpd}(4216)
|-httpd(4221)-+-{httpd}(4225)
| `-{httpd}(4226)
`-httpd(4222)-+-{httpd}(4227)
`-{httpd}(4228)
----------------------------------------------
Tue Mar 16 13:38:41 JST 2021
httpd(4035)-+-httpd(4213)-+-{httpd}(4215)
| `-{httpd}(4216)
|-httpd(4221)-+-{httpd}(4225)
| `-{httpd}(4226)
|-httpd(4222)-+-{httpd}(4227)
| `-{httpd}(4228)
|-httpd(4233)-+-{httpd}(4245)
| `-{httpd}(4246)
|-httpd(4234)-+-{httpd}(4247)
| `-{httpd}(4248)
|-httpd(4235)-+-{httpd}(4241)
| `-{httpd}(4242)
`-httpd(4236)-+-{httpd}(4243)
`-{httpd}(4244)
----------------------------------------------
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]