You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/03/05 08:52:47 UTC

DO NOT REPLY [Bug 52828] New: Child process is not replaced in Windows, after a worker thread was killed

https://issues.apache.org/bugzilla/show_bug.cgi?id=52828

             Bug #: 52828
           Summary: Child process is not replaced in Windows, after a
                    worker thread was killed
           Product: Apache httpd-2
           Version: 2.2.21
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mosheb@perfectomobile.com
    Classification: Unclassified


When the child process needs to be replaced because MaxRequestsPerChild has
been reached, there is an attempt to wait for the threads running in the older
child to be over. If it takes longer than 5 minutes, the threads are killed. In
case a thread is killed, the existing child (the newer child) is no longer
replaced.

In the logs, it looks like this:

[Sun Feb 12 09:58:18 2012] [notice] Child 10508: Process exiting because it
reached MaxRequestsPerChild. Signaling the parent to restart a new child
process.
[Sun Feb 12 09:58:18 2012] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Feb 12 09:58:18 2012] [notice] Digest: generating secret for digest
authentication ...
[Sun Feb 12 09:58:18 2012] [notice] Digest: done
[Sun Feb 12 09:58:18 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21
OpenSSL/0.9.8r configured -- resuming normal operations
[Sun Feb 12 09:58:18 2012] [notice] Server built: Sep  9 2011 10:26:10
[Sun Feb 12 09:58:18 2012] [notice] Parent: Created child process 8816
[Sun Feb 12 09:58:19 2012] [notice] Digest: generating secret for digest
authentication ...
[Sun Feb 12 09:58:19 2012] [notice] Digest: done
[Sun Feb 12 09:58:19 2012] [notice] Child 10508: Released the start mutex
[Sun Feb 12 09:58:19 2012] [notice] Child 8816: Child process is running
[Sun Feb 12 09:58:19 2012] [notice] Child 8816: Acquired the start mutex.
[Sun Feb 12 09:58:19 2012] [notice] Child 8816: Starting 500 worker threads.
[Sun Feb 12 09:58:19 2012] [notice] Child 8816: Starting thread to listen on
port 443.
[Sun Feb 12 09:58:19 2012] [notice] Child 8816: Starting thread to listen on
port 80.
[Sun Feb 12 09:58:52 2012] [notice] Child 10508: Waiting 270 more seconds for 2
worker threads to finish.
[Sun Feb 12 09:59:25 2012] [notice] Child 10508: Waiting 240 more seconds for 2
worker threads to finish.
[Sun Feb 12 09:59:58 2012] [notice] Child 10508: Waiting 210 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:00:31 2012] [notice] Child 10508: Waiting 180 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:01:04 2012] [notice] Child 10508: Waiting 150 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:01:36 2012] [notice] Child 10508: Waiting 120 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:02:09 2012] [notice] Child 10508: Waiting 90 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:02:42 2012] [notice] Child 10508: Waiting 60 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:03:15 2012] [notice] Child 10508: Waiting 30 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:03:48 2012] [notice] Child 10508: Waiting 0 more seconds for 2
worker threads to finish.
[Sun Feb 12 10:03:48 2012] [notice] Child 10508: Terminating 2 threads that
failed to exit.
[Sun Feb 12 10:03:48 2012] [notice] Child 10508: All worker threads have
exited.
[Sun Feb 12 10:03:48 2012] [notice] Child 10508: Child process is exiting

Our relevant configuration is:

ThreadLimit 500
ThreadsPerChild 500
MaxRequestsPerChild 500
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 60

-- 
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