httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60598] New: Graceful restart do not follow changes in MaxRequestWorkers mpm_prefork
Date Tue, 17 Jan 2017 17:41:07 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60598

            Bug ID: 60598
           Summary: Graceful restart do not follow changes in
                    MaxRequestWorkers mpm_prefork
           Product: Apache httpd-2
           Version: 2.4.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: bistrulli@gmail.com
  Target Milestone: ---

With multiple graceful restarts apache do not spawn the specified number of
processes as indicated by the mpm_prefork MaxRequestWorkers parameter.

To reproduce the bug take the following steps:

1) start apache with following mpm_prefork.conf file
<IfModule mpm_prefork_module>
        MaxRequestWorkers   6
        MaxRequestsPerChild 0
</IfModule>

then the 6 children processes are spawned as expected

2) change the mpm_prefork.conf and restart apache gracefully 
(sudo apache2ctl -k graceful)
<IfModule mpm_prefork_module>
        MaxRequestWorkers   2
        MaxRequestsPerChild 0
</IfModule>

the number of children process is reduced to 2 as expected

3) change the mpm_prefork.conf and restart apache gracefully
(sudo apache2ctl -k graceful)
<IfModule mpm_prefork_module>
        MaxRequestWorkers   6
        MaxRequestsPerChild 0
</IfModule>

the number of children processes still remain fixed to 2 (observed with
(heavy/soft/zero) load on the server). Generally what we saw is that this
behavior happens after a chain of graceful restart when MaxRequestWorkers is 
decreased then increased.

-- 
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


Mime
View raw message