You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/02/26 00:54:19 UTC
DO NOT REPLY [Bug 33748] New: -
parent httpd goes defunct, max children/workers reached, max_fd per process reached
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33748>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33748
Summary: parent httpd goes defunct, max children/workers reached,
max_fd per process reached
Product: Apache httpd-2.0
Version: 2.0.47
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: hogan.whittall@overture.com
Red Hat Linux release 8.0 (Psyche)
Server version: Apache/2.0.47
Server built: Nov 9 2003 23:40:33
Using piped logs (rotatelogs), we're experiencing random "crashes". The httpd
processes never crash/die, but the parent becomes defunct and the max number of
workers are spawned. Upon launching an lsof on one of the workers, I found it
had spawned pipes until max fd was reached (1024). This was the case for each
worker and added up to over 144,000 FIFO pipes with the same sequence/ID.
Pasted below is the lsof output on just one of the workers. As you can see,
each fd to the pipe is trying to write, I'm assuming it's trying to write to the
now-defunct parent. If we change the config back to standard logfiles the
problem goes away, but we reach the 2gb filesize limit within 5 days, 2 days
before the system log roller kicks off and end up losing 2 day's worth of data.
httpd 25484 root cwd DIR 8,3 4096 2 /
httpd 25484 root rtd DIR 8,3 4096 2 /
httpd 25484 root txt REG 8,3 389574 27336 /usr/sbin/httpd
httpd 25484 root mem REG 8,3 90168 45787 /lib/ld-2.3.2.so
httpd 25484 root mem REG 8,3 52908 26835
/usr/lib/httpd/modules/mod_access.so
httpd 25484 root mem REG 8,3 60702 26891
/usr/lib/libz.so.1.1.4
httpd 25484 root mem REG 8,3 194416 45692
/lib/libssl.so.0.9.6b
httpd 25484 root mem REG 8,3 853424 45691
/lib/libcrypto.so.0.9.6b
httpd 25484 root mem REG 8,3 43360 45148
/lib/libpcre.so.0.0.1
httpd 25484 root mem REG 8,3 10112 23215
/usr/lib/libpcreposix.so.0.0.0
httpd 25484 root mem REG 8,3 781725 27118
/usr/lib/libaprutil-0.so.0.9.4
httpd 25484 root mem REG 8,3 201987 27126
/usr/lib/libldap.so.2.0.17
httpd 25484 root mem REG 8,3 48163 26821
/usr/lib/liblber.so.2.0.17
httpd 25484 root mem REG 8,3 30040 23192
/usr/lib/libgdbm.so.2.0.0
httpd 25484 root mem REG 8,3 760175 45130 /lib/libdb-4.0.so
httpd 25484 root mem REG 8,3 162799 23190
/usr/lib/libexpat.so.0.3.0
httpd 25484 root mem REG 8,3 1441743 27114
/usr/lib/libapr-0.so.0.9.4
httpd 25484 root mem REG 8,3 32187 45806
/lib/librt-2.3.2.so
httpd 25484 root mem REG 8,3 171281 45094
/lib/i686/libm-2.3.2.so
httpd 25484 root mem REG 8,3 24729 45791
/lib/libcrypt-2.3.2.so
httpd 25484 root mem REG 8,3 90721 45794
/lib/libnsl-2.3.2.so
httpd 25484 root mem REG 8,3 12842 45792
/lib/libdl-2.3.2.so
httpd 25484 root mem REG 8,3 88042 45089
/lib/i686/libpthread-0.10.so
httpd 25484 root mem REG 8,3 53842 26819
/usr/lib/libsasl.so.7.1.11
httpd 25484 root mem REG 8,3 37852 45740
/lib/libpam.so.0.75
httpd 25484 root mem REG 8,3 73640 45805
/lib/libresolv-2.3.2.so
httpd 25484 root mem REG 8,3 107787 26865
/usr/lib/httpd/modules/mod_log_config.so
httpd 25484 root mem REG 8,3 49644 26855
/usr/lib/httpd/modules/mod_env.so
httpd 25484 root mem REG 8,3 79046 26856
/usr/lib/httpd/modules/mod_expires.so
httpd 25484 root mem REG 8,3 69221 26852
/usr/lib/httpd/modules/mod_deflate.so
httpd 25484 root mem REG 8,3 59833 26858
/usr/lib/httpd/modules/mod_headers.so
httpd 25484 root mem REG 8,3 59673 26875
/usr/lib/httpd/modules/mod_setenvif.so
httpd 25484 root mem REG 8,3 68011 26868
/usr/lib/httpd/modules/mod_mime.so
httpd 25484 root mem REG 8,3 114271 26878
/usr/lib/httpd/modules/mod_status.so
httpd 25484 root mem REG 8,3 91805 26861
/usr/lib/httpd/modules/mod_info.so
httpd 25484 root mem REG 8,3 55621 26853
/usr/lib/httpd/modules/mod_dir.so
httpd 25484 root mem REG 8,3 67308 26859
/usr/lib/httpd/modules/mod_imap.so
httpd 25484 root mem REG 8,3 58788 26839
/usr/lib/httpd/modules/mod_alias.so
httpd 25484 root mem REG 8,3 1611965 26863
/usr/lib/httpd/modules/mod_jk2.so
httpd 25484 root mem REG 8,3 1457833 26877
/usr/lib/httpd/modules/mod_ssl.so
httpd 25484 root mem REG 8,3 49929 45801
/lib/libnss_files-2.3.2.so
httpd 25484 root mem DEL 0,4 2228225 /SYSV01030017
httpd 25484 root mem CHR 1,5 18502 /dev/zero
httpd 25484 root mem CHR 1,5 18502 /dev/zero
httpd 25484 root mem REG 8,3 1452984 45093
/lib/i686/libc-2.3.2.so
httpd 25484 root 0r CHR 1,3 16 /dev/null
httpd 25484 root 1w CHR 1,3 16 /dev/null
httpd 25484 root 2w CHR 1,3 16 /dev/null
httpd 25484 root 3u IPv4 29866605 TCP *:http (LISTEN)
httpd 25484 root 4u IPv4 29866606 TCP *:https (LISTEN)
httpd 25484 root 5r FIFO 0,5 29866614 pipe
httpd 25484 root 6w FIFO 0,5 29866614 pipe
httpd 25484 root 7u unix 0xce0bb900 29866610 socket
httpd 25484 root 8u REG 8,3 4608 18554
/var/log/httpd/ssl_error_log
httpd 25484 root 9r FIFO 0,5 29866615 pipe
httpd 25484 root 10w FIFO 0,5 29866615 pipe
httpd 25484 root 11w REG 8,3 0 18561
/var/log/httpd/ssl_access_log
httpd 25484 root 12w FIFO 0,5 29866615 pipe
httpd 25484 root 13w REG 8,3 0 18569
/var/log/httpd/ssl_request_log
httpd 25484 root 14u REG 8,3 0 18570
/var/log/httpd/jk2.log
httpd 25484 root 15w REG 8,3 0 19564
/var/log/httpd/ssl_mutex.25481 (deleted)
httpd 25484 root 17w FIFO 0,5 29866615 pipe
httpd 25484 root 18w FIFO 0,5 29866615 pipe
httpd 25484 root 19w FIFO 0,5 29866615 pipe
httpd 25484 root 20w FIFO 0,5 29866615 pipe
[...1000 later...]
httpd 25484 root 1021w FIFO 0,5 29866615 pipe
httpd 25484 root 1022w FIFO 0,5 29866615 pipe
httpd 25484 root 1023w FIFO 0,5 29866615 pipe
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org