This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Apache2 crashing/degrading x64 Windows 7 system


I reported this problem a while back.   Out of the box Cygwin 1.7.1 Apache2 eventually brings down my Windows 7 Home quad core x86 system if httpd2 is subject to only a relatively light load.

A workaround seems to be to heavily limit the number of processes (and sockets) used by Apache2.  This is in no way tuned for optimal use, but at least my system survives having httpd2 running:

1. Specify an IP address for the Listen directive in /etc/apache2/httpd.conf.  (This is a PIA for for DHCP allocated IP addresses (serviced by DynDNS), but seems necessary.)

2. Uncomment Include /etc/apache2/extra/httpd-mpm.conf in the same file.

3. Edit /etc/apache2/extra/httpd-mpm.conf and modify mpm_prefork_module.  I did the following:

<IfModule mpm_prefork_module>
    StartServers          1
    MinSpareServers       1
    MaxSpareServers       2 
    MaxClients            3
    MaxRequestsPerChild   0
</IfModule>

4. Restart httpd2

Stacey


      

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]