www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas J Leon <b...@nicholasjleon.com>
Subject general/6816: Idle httpd process using 100% CPU time
Date Wed, 08 Nov 2000 13:37:53 GMT

>Number:         6816
>Category:       general
>Synopsis:       Idle httpd process using 100% CPU time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Nov 08 05:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     bugs@nicholasjleon.com
>Release:        2.0a7
>Organization:
apache
>Environment:
Linux 2.2.15-SMP (RedHat 6.2 release/built the kernel myself). Egcs 2.91.66. glibc-2.1.3.

>Description:
On an almost completely idle server (5 hits yesterday?), every 8 hours or so (it's happened
thrice now), one or more httpd process will go haywire and start consuming 100% of available
CPU time:

  8:33am  up 54 days,  3:21,  2 users,  load average: 1.24, 1.10, 0.79
110 processes: 104 sleeping, 2 running, 1 zombie, 3 stopped
CPU states: 24.1% user, 32.1% system,  0.0% nice, 43.6% idle
Mem:   192828K av,  180124K used,   12704K free,   33968K shrd,  104784K buff
Swap:  265032K av,   28820K used,  236212K free                   18260K cached

  PID USER     TTY      PRI  NI  SIZE  RSS STAT %CPU %MEM   TIME COMMAND
21328 nobody   ?         16   0  3044 3044 R    99.5  1.5  21:07 /web/apache2/bin/httpd

If I try to strace it, strace just returns as if the process has faulted. If I "kill 21328",
nothing happens. If I "kill -9 21328", it goes away and is NOT replaced by another runaway
process (at least for another 8 hours or so).

I also see large amounts of "TIME" (according to ps/top) on httpd processes where there was
no web activity to account for the usage:

root(/3)@neko [127 /<2>apache_2.0a7/src] # ps auxw | grep apache2
root     21222  0.0  0.6  2856 1316 ?        S    Nov07   0:11 /web/apache2/bin/httpd
nobody   21223  0.0  0.6  2436 1272 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21228  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21253  0.0  1.5  5156 3044 ?        T    Nov07   0:01 /web/apache2/bin/httpd
nobody   21264  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21265  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21271  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21275  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21278  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21283  9.6  1.5  5156 3044 ?        T    Nov07 116:40 /web/apache2/bin/httpd
nobody   21286  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21290  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21302  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21309  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21311  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21319  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21321  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21323  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21330  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21331 47.8  1.5  5156 3044 ?        T    Nov07 580:31 /web/apache2/bin/httpd
nobody   21332  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd
nobody   21333  0.0  1.5  5156 3044 ?        S    Nov07   0:00 /web/apache2/bin/httpd

Notice those processes are in the "T" state?
>How-To-Repeat:
I don't know.
>Fix:
Not in the slightest. 
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message