Package: apache2
Version: 2.2.6-1
Severity: normal
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
Process 4210 attached - interrupt to quit
epoll_wait(13, <unfinished ...>
Process 4210 detached
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) = 0
rt_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) = 0
rt_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.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
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.
-- no debconf information
Attachment:
processes_month.png
Description: PNG image
Attachment:
swap_month.png
Description: PNG image