Re: Re: [users@httpd] Debugging a runaway httpd process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Finally got one to run away..

gdb output of the runaway gives:

(gdb) where
#0  0x28bbcec0 in _thread_sig_handle_pending () from /usr/lib/libc_r.so.5
#1  0x28bbc780 in _thread_sig_handler () from /usr/lib/libc_r.so.5
#2  0x28bbc981 in _thread_sig_handler () from /usr/lib/libc_r.so.5
#3  0x28bbd9f8 in _thread_sig_wrapper () from /usr/lib/libc_r.so.5
#4  0xbfbfd010 in ?? ()
#5  0x28bbd3e0 in _thread_sig_handle_pending () from /usr/lib/libc_r.so.5
#6  0x28bbcd3f in _thread_sig_check_pending () from /usr/lib/libc_r.so.5
#7  0x28bc2c59 in _thread_kern_scheduler () from /usr/lib/libc_r.so.5
(gdb)


gdb of healthy processes gives different data:
(gdb) where
#0  0x2811d9b3 in read () from /usr/lib/libc.so.5
#1  0x08051212 in ap_read ()
#2  0x08051703 in read_with_errors ()
#3  0x0805197a in ap_bgets ()
#4  0x08060543 in ap_getline ()
#5  0x080607b9 in read_request_line ()
#6  0x08060e1d in ap_read_request ()
#7  0x0805debb in child_main ()
#8  0x0805e06a in make_child ()
#9  0x0805e0f8 in startup_children ()
#10 0x0805e726 in standalone_main ()
#11 0x0805eef7 in main ()
#12 0x0804e595 in _start ()

When one httpd goes bad, others quickly follow as such:

 PID USERNAME      PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
1397 www           129    0 18972K 12604K RUN      1:03 21.19% 21.19% httpd
1398 www           129    0 18972K 12604K RUN      1:01 21.09% 21.09% httpd
1329 www           129    0 18984K 12608K RUN      1:01 21.00% 21.00% httpd
1415 www           129    0 18984K 12608K RUN      0:15 20.65% 20.65% httpd
1423 smmsp          -8    0  3720K  3192K biord    0:01  0.05%  0.05% sendmail
1258 www            96    0 18992K 12624K STOP     5:51  0.00%  0.00% httpd
 403 mysql          96    0 45824K 21420K select   0:18  0.00%  0.00% mysqld
 242 bind           96    0  5740K  5036K select   0:12  0.00%  0.00% named
1062 www             4    0 23740K 17580K sbwait   0:01  0.00%  0.00% httpd
 446 root           96    0 18908K 12544K select   0:01  0.00%  0.00% httpd


The newer runaway httpds show the same gdb output as well.



On 9/29/06, Joshua Slive <joshua@xxxxxxxx> wrote:
On 9/29/06, Jeff Mohler <speedtoys.racing@xxxxxxxxx> wrote:
> I am suffering from runaway httpd processes, and I dont understand
> enough about systems at this level, to understand why.
>
> I asked my server "admin"  (IE: Smart helper) to add PHP support and a
> few other minor things to the environment, which has been stable since
> 2002.
>
> Now, the httpd process randomly starts to run away with the whole machine.
>
> I stumbled into ktrace, and Ive found some fnctl calls that go
> nowhere, and tonight I caught it starting actually:

A gdb backtrace might be more informative:
http://httpd.apache.org/dev/debugging.html#backtrace

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux