httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50002] Restart with many vhosts taking forever [patch]
Date Sat, 25 Sep 2010 09:58:26 GMT

GDR! <> changed:

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

--- Comment #2 from GDR! <> 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.


Generate a config file with 30 000 entries similar to this one:
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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message