Bug 47528 - Worker process won't restart more than once using MaxRequestsPerChild with mpm_winnt
Summary: Worker process won't restart more than once using MaxRequestsPerChild with mp...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mpm_winnt (show other bugs)
Version: 2.2.9
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2009-07-14 13:32 UTC by John McCaskey
Modified: 2009-07-14 13:32 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description John McCaskey 2009-07-14 13:32:09 UTC
I'm using Apache 2.2.9, but I didn't find any changes in the newer versions that appear related to this issue.  I've set MaxRequestsPerChild to 500 in my Apache config.  If I watch the server-status page and refresh 500 times I see the PID for the process change and in my logs I see that the server restarted due to hitting hte max.  If I repeat this and go to 1000 requests no restart occurs, no matter how many more requests are issued the process doesn't restart.

This is a problem for us because the process seems to use more and more memory over time and since there is only a single process on Windows we are stuck with only 2 gigs to share between all the threads and our PHP code running on the server can tend to use lots of memory.  We end up with PHP running out of memory after the server has been up for a while and have to manually restart it.  I wanted to just use the MaxRequestsPerChild to gurantee we'd restart a couple times a day, but that isn't possible due to this bug.