logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4.9 restarts itself without obvious reason
Author
Mg



Joined: 04 Jun 2014
Posts: 4

PostPosted: Tue 24 Jun '14 15:38    Post subject: Apache 2.4.9 restarts itself without obvious reason Reply with quote

I face the problem, that Apache restarts itself unexpectedly without obvious reason.


(OS 6)The handle is invalid. : AH00356: Child: WAIT_FAILED -- shutting down server
(OS 10038)An operation was attempted on something that is not a socket. : AH00344: accept() failed.


Relevant configuration settings:
Quote:

ThreadsPerChild 300
AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off


The problem occurs since the Apache upgrade from 2.4.4 to 2.4.9.
At this moment I reverted to 2.4.4 again because the random restarts cause downtimes.

Apache Version (from this site):
* Problem occurs on 2.4.9, both VC10 and VC11 compiled ones
* Problem does NOT occur on 2.4.4
Operating System:
* Microsoft Windows Server 2012 Standard

Apache works as a caching reverse proxy (mod_cache_disk)

typical logfile fragment:
Code:

[Fri May 23 07:53:58.344457 2014] [mpm_winnt:crit] [pid 42540:tid 380] (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED -- shutting down server
[Fri May 23 07:54:03.757607 2014] [mpm_winnt:warn] [pid 42540:tid 4212] (OS 10038)An operation was attempted on something that is not a socket.  : AH00344: accept() failed.
[Fri May 23 07:54:30.288807 2014] [mpm_winnt:notice] [pid 42540:tid 380] AH00362: Child: Waiting 270 more seconds for 5 worker threads to finish.
[Fri May 23 07:55:00.329552 2014] [mpm_winnt:notice] [pid 42540:tid 380] AH00362: Child: Waiting 240 more seconds for 1 worker threads to finish.
[Fri May 23 07:55:30.370221 2014] [mpm_winnt:notice] [pid 42540:tid 380] AH00362: Child: Waiting 210 more seconds for 1 worker threads to finish.
[Fri May 23 07:55:47.893020 2014] [mpm_winnt:notice] [pid 42540:tid 380] AH00364: Child: All worker threads have exited.
[Fri May 23 07:55:48.010131 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00428: Parent: child process 42540 exited with status 0 -- Restarting.
[Fri May 23 07:55:48.801890 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g configured -- resuming normal operations
[Fri May 23 07:55:48.801890 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00456: Apache Lounge VC10 Server built: Mar 17 2014 12:11:31
[Fri May 23 07:55:48.801890 2014] [core:notice] [pid 36544:tid 516] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Fri May 23 07:55:48.802891 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00418: Parent: Created child process 33888
[Fri May 23 07:55:50.263291 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00354: Child: Starting 300 worker threads.
[Fri May 23 11:58:09.232804 2014] [mpm_winnt:crit] [pid 33888:tid 380] (OS 6)The handle is invalid.  : AH00356: Child: WAIT_FAILED -- shutting down server
[Fri May 23 11:58:10.710220 2014] [mpm_winnt:warn] [pid 33888:tid 5008] (OS 10038)An operation was attempted on something that is not a socket.  : AH00344: accept() failed.
[Fri May 23 11:58:28.546422 2014] [mpm_winnt:warn] [pid 33888:tid 3320] (OS 10038)An operation was attempted on something that is not a socket.  : AH00344: accept() failed.
[Fri May 23 11:58:41.169814 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 270 more seconds for 8 worker threads to finish.
[Fri May 23 11:59:11.208219 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 240 more seconds for 3 worker threads to finish.
[Fri May 23 11:59:41.245781 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 210 more seconds for 1 worker threads to finish.
[Fri May 23 12:00:11.277011 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 180 more seconds for 1 worker threads to finish.
[Fri May 23 12:00:41.305795 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 150 more seconds for 1 worker threads to finish.
[Fri May 23 12:01:11.335526 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00362: Child: Waiting 120 more seconds for 1 worker threads to finish.
[Fri May 23 12:01:15.840009 2014] [mpm_winnt:notice] [pid 33888:tid 380] AH00364: Child: All worker threads have exited.
[Fri May 23 12:01:15.953118 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00428: Parent: child process 33888 exited with status 0 -- Restarting.
[Fri May 23 12:01:16.820952 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g configured -- resuming normal operations
[Fri May 23 12:01:16.820952 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00456: Apache Lounge VC10 Server built: Mar 17 2014 12:11:31
[Fri May 23 12:01:16.820952 2014] [core:notice] [pid 36544:tid 516] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Fri May 23 12:01:16.820952 2014] [mpm_winnt:notice] [pid 36544:tid 516] AH00418: Parent: Created child process 24388
[Fri May 23 12:01:18.308375 2014] [mpm_winnt:notice] [pid 24388:tid 376] AH00354: Child: Starting 300 worker threads.


Have you got any idea, why this can happen?

In the windows eventlog I can't find any relevant entries at the time that apache restarts.

Please help if you can
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Tue 24 Jun '14 16:01    Post subject: Reply with quote

just a try in a command shell (cmd.exe): netsh winsock reset
Back to top
Jan



Joined: 08 Jun 2015
Posts: 2

PostPosted: Mon 08 Jun '15 15:45    Post subject: Reply with quote

Hi all,

I am running Apache 2.4.12 VC11 on Windows Server 2008 R2 Ent. as Reverse Proxy for IIS and Tomcat WebServers.

Loaded Modules:
    mod_jk/1.2.40
    OpenSSL/1.0.1m
    PHP/5.6.4 (i have two php pages which are queried from time to time)


The AcceptFilter etc listed above are already set:
Code:

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off


Also i found some hint´s regarding AV Systems which should be deactivated etc but none of this actions solved the issue.

any further idea?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 08 Jun '15 15:59    Post subject: Reply with quote

Hi Jan,

do it as jraute told you

open cmd.exe as Adminstrator an

type | copy / paste

Code:

netsh winsock reset
Back to top
Jan



Joined: 08 Jun 2015
Posts: 2

PostPosted: Mon 08 Jun '15 16:04    Post subject: Reply with quote

sorry forgot to mention -> winsock reset was also done but the issue still persists Sad
Back to top


Reply to topic   Topic: Apache 2.4.9 restarts itself without obvious reason View previous topic :: View next topic
Post new topic   Forum Index -> Apache