Description of problem: httpd takes a long time to graceful restart Version-Release number of selected component (if applicable): httpd-2.0.46-23.ent How reproducible: all graceful restarts , timeout varies Steps to Reproduce: 1. install httpd 2. sudo /sbin/service httpd graceful 3. wait... :) Actual results: 192.168.10.15 - - [26/Sep/2003:13:14:03 -0700] "GET / HTTP/1.0" 403 2898 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:14:03 -0700] "GET / HTTP/1.0" 403 2898 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:14:12 -0700] "GET / HTTP/1.0" 403 2898 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:14:13 -0700] "GET / HTTP/1.0" 403 2898 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:14:13 -0700] "GET / HTTP/1.0" 403 2898 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" [Fri Sep 26 13:14:03 2003] [notice] Graceful restart requested, doing restart [Fri Sep 26 13:14:12 2003] [notice] Apache/2.0.46 (Red Hat) configured -- resuming normal operations Expected results: 192.168.10.15 - - [26/Sep/2003:13:12:46 -0700] "GET / HTTP/1.0" 200 843 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:12:46 -0700] "GET / HTTP/1.0" 200 843 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:12:50 -0700] "GET / HTTP/1.0" 200 843 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:12:50 -0700] "GET / HTTP/1.0" 200 843 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" 192.168.10.15 - - [26/Sep/2003:13:12:50 -0700] "GET / HTTP/1.0" 200 843 "-" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7" [Fri Sep 26 13:12:46 2003] [notice] Graceful restart requested, doing restart [Fri Sep 26 13:12:50 2003] [notice] Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6g configured -- resuming normal operations Additional info: actual is taroon expected is freebsd ( for reference) On another taroon machine 30 second timout [Fri Sep 26 11:28:46 2003] [notice] Graceful restart requested, doing restart [Fri Sep 26 11:29:14 2003] [notice] Apache/2.0.46 (Red Hat) configured -- resuming normal operations I looked for another example, but couldn't find it. IIRC it was a ~2 minute timeout. possibley the "resuming normal operations" message happens before connections are possible. I left the priority/severity as normal, but since taroon/RHEL3 is designed for a server environment ( where httpd.conf updates happen frequently and log rotation is daily/semi-daily rather than weekly), I would recomend a higher priority.
Have you had time to look into this? /me willing to test
Yes, we have a tentative fix for this - some testing would be really useful, I'll build some packages.
OK, can you try the packages here: http://people.redhat.com/jorton/Taroon-httpd/ feedback gratefully received!
Giving it a try now.
That seems to have done the trick! On a production server, the time was a second or two, about the same as apache 1.3.x On a test server with ~8000 virtual hosts (yes 8000), the time to reload was about 15 seconds. Most of which I imagine was parsing ~35000 lines of configs. You da' man!
more misc info: running httpd, mod_ssl and php, no mod_{python,perl,etc}
Any idea on when this will be pushed to up2date?
It's scheduled for inclusion in the next update. Thanks for the report and testing!
httpd-2.0.46-26.ent ? yes
Yes indeed, -26.ent has the fix and is included in the Update 1 Beta.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2003-320.html