https://issues.apache.org/bugzilla/show_bug.cgi?id=50002
GDR! <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #2 from GDR! <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
