|
|||||||||||
|
Bug#447164: /etc/init.d/apache2 stop leaves processes around
From: Stefan V?l <bd(at)bc-bd.org>
Date: Thu Oct 18 2007 - 10:49:20 EDT
My machine was keeping tons of apache2 processes around (I suspect due to the daily logrotate restart), see attached images. $ ps fax | grep apache2 4204 ? Ss 0:00 /usr/sbin/apache2 -k start 4210 ? S 0:00 \_ /usr/sbin/apache2 -k start
$ sudo strace -p 4210
Stracing the father process 4204 reveals a loop of this: waitpid(4210, 0xbfd03878, WNOHANG|WSTOPPED) = 0 getpgid(0x1072) = 4204 getpgrp() = 4204 kill(4210, SIG_0) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 waitpid(4210, 0xbfd03878, WNOHANG|WSTOPPED) = 0 getpgid(0x1072) = 4204 getpgrp() = 4204 kill(4210, SIG_0) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, <unfinished ...> gdb did not reveal any additional information.
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages apache2 depends on: ii apache2-mpm-prefork 2.2.6-1 Traditional model for Apache HTTPD apache2 recommends no packages.
-- To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Thu Oct 18 10:58:48 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:58:29 EDT |
||||||||||
|
|||||||||||