httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50002] Restart with many vhosts taking forever [patch]
Date Sat, 25 Sep 2010 09:58:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50002

GDR! <andrew@cloudaccess.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |

--- Comment #2 from GDR! <andrew@cloudaccess.net> 2010-09-25 05:58:23 EDT ---
This is not the same bug.

What slows things down here can be described as following:

Apache restarts. It kills all the subprocesses and re-reads configs. Re-reading
configs (stored on a local, very fast disk) takes little I/O and 100% CPU. For
30k vhosts, it takes from 3 to 5 minutes before this phase finishes. During
that time, server is inaccessible.

This happens because of inefficient processing of lots of <VirtualHost>
directives and my patch addresses that as described previously.

Bug 41887 is about lowering I/O by avoiding stat calls. This bug is about
avoiding unnecessarily high CPU usage and lowering config reading time.

HOW TO REPRODUCE:

Generate a config file with 30 000 entries similar to this one:
http://gdr.pastebin.pl/28193
They may all point to the same directory, it doesn't matter for this test.
Restart httpd, measure time when sites are inaccessible (several minutes).
Observe CPU usage (100% usage of 1 CPU core).

Apply patch, test again. The server is up in seconds.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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