You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sideslinder <si...@gmail.com> on 2014/04/19 13:04:41 UTC

[users@httpd] how to prevent the apache main process from accepting the connection from remote host?

If the main proces accept the remote connection, the configuration as below
will fail to reboot the apache process.
<IfModule mpm_winnt_module>
    ThreadsPerChild        150
    MaxConnectionsPerChild   100
</IfModule>

So, when the max connection(the connection was accepted by the main
process) reached, Apache will not restart, and any other client can not
access the Apache web server.

Hope to find a solution. Thank you.

also i raise an issue on apachen bug database, below is the link
https://issues.apache.org/bugzilla/show_bug.cgi?id=56421

Re: [users@httpd] how to prevent the apache main process from accepting the connection from remote host?

Posted by Eric Covener <co...@gmail.com>.
I don't see any indication that the parent has accepted / is
processing a client connection. Maybe your abnormal situation has
nothing to do with that.

On Sat, Apr 19, 2014 at 11:23 AM, sideslinder <si...@gmail.com> wrote:
> now the apache server is abnormal, below is the output of the handle. All
> the information is enough?
>
>
> D:\tool\handle\Handle>handle.exe  -p 8560
>
> Handle v3.51
> Copyright (C) 1997-2013 Mark Russinovich
> Sysinternals - www.sysinternals.com
>
>    5C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
> 5b64144ccf1df_6.0.3790.5190_x-ww_319264BE
>    70: File  (RW-)   D:\wamp\bin\apache\Apache2.4.4
>    A8: File  (RWD)   D:\wamp\logs\apache_error.log
>    D8: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
> 5b64144ccf1df_5.82.3790.5190_x-ww_D21E1F39
>    E8: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>    F8: File  (RWD)   D:\wamp\logs\access.log
>   128: File  (RWD)   D:\wamp\bin\apache\Apache2.4.4\logs\access.log
>   130: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   134: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   144: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   148: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   14C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   150: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   160: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   164: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   168: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   16C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   170: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>
>
>
>
> 2014-04-19 19:37 GMT+08:00 sideslinder <si...@gmail.com>:
>
>> thanks for your quick reply
>> now the server is normal, the handle output is as below
>> D:\tool\handle\Handle>handle.exe  -p 8560
>> Handle v3.51
>> Copyright (C) 1997-2013 Mark Russinovich
>> Sysinternals - www.sysinternals.com
>>    5C: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
>> 5b64144ccf1df_6.0.3790.5190_x-ww_319264BE
>>    70: File  (RW-)   D:\wamp\bin\apache\Apache2.4.4
>>    A8: File  (RWD)   D:\wamp\logs\apache_error.log
>>    D8: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
>> 5b64144ccf1df_5.82.3790.5190_x-ww_D21E1F39
>>    E8: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>    F8: File  (RWD)   D:\wamp\logs\access.log
>>   128: File  (RWD)   D:\wamp\bin\apache\Apache2.4.4\logs\access.log
>>   12C: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   144: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   148: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   14C: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   150: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   154: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   158: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   15C: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   160: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   164: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>>   168: File  (RW-)
>> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
>> .0.21022.8_x-ww_d08d0375
>> D:\tool\handle\Handle>
>>
>> when the apache become abnormal i will post the handle output again.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2014-04-19 19:26 GMT+08:00 Eric Covener <co...@gmail.com>:
>>
>>> On Sat, Apr 19, 2014 at 7:04 AM, sideslinder <si...@gmail.com>
>>> wrote:
>>> > If the main proces accept the remote connection, the configuration as
>>> > below
>>> > will fail to reboot the apache process.
>>>
>>> There's a parent/child relationship. Only the child accepts
>>> connections.  Can you show your parent process with client connections
>>> using handle.exe from sysinternals?
>>>
>>>
>>> --
>>> Eric Covener
>>> covener@gmail.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] how to prevent the apache main process from accepting the connection from remote host?

Posted by sideslinder <si...@gmail.com>.
now the apache server is abnormal, below is the output of the handle. All
the information is enough?


D:\tool\handle\Handle>handle.exe  -p 8560

Handle v3.51
Copyright (C) 1997-2013 Mark Russinovich
Sysinternals - www.sysinternals.com

   5C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
5b64144ccf1df_6.0.3790.5190_x-ww_319264BE
   70: File  (RW-)   D:\wamp\bin\apache\Apache2.4.4
   A8: File  (RWD)   D:\wamp\logs\apache_error.log
   D8: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
5b64144ccf1df_5.82.3790.5190_x-ww_D21E1F39
   E8: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
   F8: File  (RWD)   D:\wamp\logs\access.log
  128: File  (RWD)   D:\wamp\bin\apache\Apache2.4.4\logs\access.log
  130: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  134: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  144: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  148: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  14C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  150: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  160: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  164: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  168: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  16C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  170: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375




2014-04-19 19:37 GMT+08:00 sideslinder <si...@gmail.com>:

> thanks for your quick reply
> now the server is normal, the handle output is as below
> D:\tool\handle\Handle>handle.exe  -p 8560
> Handle v3.51
> Copyright (C) 1997-2013 Mark Russinovich
> Sysinternals - www.sysinternals.com
>    5C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
> 5b64144ccf1df_6.0.3790.5190_x-ww_319264BE
>    70: File  (RW-)   D:\wamp\bin\apache\Apache2.4.4
>    A8: File  (RWD)   D:\wamp\logs\apache_error.log
>    D8: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
> 5b64144ccf1df_5.82.3790.5190_x-ww_D21E1F39
>    E8: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>    F8: File  (RWD)   D:\wamp\logs\access.log
>   128: File  (RWD)   D:\wamp\bin\apache\Apache2.4.4\logs\access.log
>   12C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   144: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   148: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   14C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   150: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   154: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   158: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   15C: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   160: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   164: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
>   168: File  (RW-)
> C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
> .0.21022.8_x-ww_d08d0375
> D:\tool\handle\Handle>
>
> when the apache become abnormal i will post the handle output again.
>
>
>
>
>
>
>
>
>
> 2014-04-19 19:26 GMT+08:00 Eric Covener <co...@gmail.com>:
>
> On Sat, Apr 19, 2014 at 7:04 AM, sideslinder <si...@gmail.com>
>> wrote:
>> > If the main proces accept the remote connection, the configuration as
>> below
>> > will fail to reboot the apache process.
>>
>> There's a parent/child relationship. Only the child accepts
>> connections.  Can you show your parent process with client connections
>> using handle.exe from sysinternals?
>>
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] how to prevent the apache main process from accepting the connection from remote host?

Posted by sideslinder <si...@gmail.com>.
thanks for your quick reply
now the server is normal, the handle output is as below
D:\tool\handle\Handle>handle.exe  -p 8560
Handle v3.51
Copyright (C) 1997-2013 Mark Russinovich
Sysinternals - www.sysinternals.com
   5C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
5b64144ccf1df_6.0.3790.5190_x-ww_319264BE
   70: File  (RW-)   D:\wamp\bin\apache\Apache2.4.4
   A8: File  (RWD)   D:\wamp\logs\apache_error.log
   D8: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_659
5b64144ccf1df_5.82.3790.5190_x-ww_D21E1F39
   E8: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
   F8: File  (RWD)   D:\wamp\logs\access.log
  128: File  (RWD)   D:\wamp\bin\apache\Apache2.4.4\logs\access.log
  12C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  144: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  148: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  14C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  150: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  154: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  158: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  15C: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  160: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  164: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
  168: File  (RW-)
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9
.0.21022.8_x-ww_d08d0375
D:\tool\handle\Handle>

when the apache become abnormal i will post the handle output again.









2014-04-19 19:26 GMT+08:00 Eric Covener <co...@gmail.com>:

> On Sat, Apr 19, 2014 at 7:04 AM, sideslinder <si...@gmail.com>
> wrote:
> > If the main proces accept the remote connection, the configuration as
> below
> > will fail to reboot the apache process.
>
> There's a parent/child relationship. Only the child accepts
> connections.  Can you show your parent process with client connections
> using handle.exe from sysinternals?
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] how to prevent the apache main process from accepting the connection from remote host?

Posted by Eric Covener <co...@gmail.com>.
On Sat, Apr 19, 2014 at 7:04 AM, sideslinder <si...@gmail.com> wrote:
> If the main proces accept the remote connection, the configuration as below
> will fail to reboot the apache process.

There's a parent/child relationship. Only the child accepts
connections.  Can you show your parent process with client connections
using handle.exe from sysinternals?


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org