httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Román Novalbos <jro...@linux-it.es>
Subject Re: httpd hangs ?
Date Wed, 14 Mar 2012 07:31:27 GMT
Ok, When the apache is hangs, how is the load average? Is high?


Could you get a system picture at the problem moment, i mean load, top, free, iostat -x 1,
 an apache server status, ps -aux in order to find out where the bottleneck is.

Questions: 
What kind of request are you serving? only statics objects or also dinamic? php, java, ruby?

Do you know the apache threads size?

Hardware features, RAM, CPU, is a virtual o phisical server?

Could you send me the mpm configuration? worker, prefork, maxclient, etc...

Thanks!


On 13/03/2012, at 16:53, Pawel wrote:

> Hi,
> No, I do not use NFS
> It seems that apache is not waiting for any filesystem.
> My "D" apache process keep opened only log files - located on local filesystem. There
is no I/O disk traffic.
> 
> Pawel
> 
> 
> W dniu 2012-03-13 15:09, Jorge Román Novalbos pisze:
>> 
>> Hi Pawel, 
>> 
>> I have got the same problem when I have network problem to reach our NFS volume.
Does NFS involved in any apache process??
>> 
>> I mean, the httpd binaries, logs o Documentroot are using  NFS??
>> 
>> Jorge.
>> 
>> On 13/03/2012, at 15:03, Pawel wrote:
>> 
>>> Hello,
>>> 
>>> After upgrading to 2.2.22 (from 2.2.19 ) my apache stop responding to network
queries.
>>> It happens on quite busy system (~200 workers ),  ~ one per day.
>>> one apache process is  in "D" state. 
>>> 
>>> Apache is running on 3.2.2 kernel, ,  gcc 4.5.3-r1 p1.0, pie-0.4.5
>>> 
>>> 
>>> Is it know bug? 
>>> Anyone can see that behavior ?
>>> 
>>> Thanks
>>> Pawel 
>>> 
>>> 
>>> www      19504  0.0  0.0 141084 19828 ?        Ds   Mar09   0:44 /usr/local/apache22/bin/httpd
-k start
>>> www      12773  0.3  0.0      0     0 ?        Z    09:40   0:01  \_ [httpd]
<defunct>
>>> www      12815  0.4  0.0      0     0 ?        Z    09:41   0:01  \_ [httpd]
<defunct>
>>> www      12844  0.2  0.0      0     0 ?        Z    09:42   0:00  \_ [httpd]
<defunct>
>>> www      12876  0.2  0.0      0     0 ?        Z    09:42   0:01  \_ [httpd]
<defunct>
>>> www      12896  0.2  0.0      0     0 ?        Z    09:43   0:00  \_ [httpd]
<defunct>
>>> www      12918  0.2  0.0      0     0 ?        Z    09:44   0:00  \_ [httpd]
<defunct>
>>> www      12946  0.2  0.0      0     0 ?        Z    09:44   0:00  \_ [httpd]
<defunct>
>>> www      12968  0.2  0.0      0     0 ?        Z    09:45   0:00  \_ [httpd]
<defunct>
>>> www      13001  0.5  0.0      0     0 ?        Z    09:45   0:01  \_ [httpd]
<defunct>
>>> www      13020  0.5  0.0      0     0 ?        Z    09:46   0:01  \_ [httpd]
<defunct>
>>> www      13036  2.2  0.0      0     0 ?        Z    09:46   0:04  \_ [httpd]
<defunct>
>>> www      13057  0.5  0.0      0     0 ?        Z    09:47   0:00  \_ [httpd]
<defunct>
>>> www      13077  2.7  0.0      0     0 ?        Z    09:47   0:03  \_ [httpd]
<defunct>
>>> www      13105  1.3  0.0      0     0 ?        Z    09:48   0:01  \_ [httpd]
<defunct>
>>> www      13135  1.1  0.0 159492 24208 ?        SL   09:48   0:00  \_ /usr/local/apache22/bin/httpd
-k start
>>> www      13171  0.5  0.0 156436 21408 ?        SL   09:49   0:00  \_ /usr/local/apache22/bin/httpd
-k start
>>> www      13210  0.0  0.0 141084  9628 ?        R    09:49   0:00  \_ /usr/local/apache22/bin/httpd
-k start
>>> 
>>> strace (one message per ~ 30 seconds )
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13701
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13720
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13740
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12773
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12815
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12844
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12876
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12896
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12918
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12946
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 12968
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13001
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13020
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13036
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13057
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13077
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13105
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13135
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13171
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13210
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13245
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13267
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13291
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13310
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13331
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13351
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13372
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13409
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13431
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13449
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13475
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13502
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13564
>>> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED,
NULL) = 13588
>>> wait4(-1, 0x7ad781767684, WNOHANG|WSTOPPED, NULL) = 0
>>> select(0, NULL, NULL, NULL, {1, 0})     = 0 (Timeout)
>>> write(2, "[Tue Mar 13 10:00:01 2012] [info"..., 179) = 179
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13763
>>> --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13606, si_status=0, si_utime=55,
si_stime=24} (Child exited) ---
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13782
>>> --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13639, si_status=0, si_utime=38,
si_stime=14} (Child exited) ---
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13810
>>> --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13740, si_status=0, si_utime=89,
si_stime=34} (Child exited) ---
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13846
>>> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x73be642dda10)
= 13870
>>> 
>> 
> 


Mime
View raw message