httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve O'Brien <capnjac...@yahoo.com>
Subject [users@httpd] httpd 2.0.45 threads consuming 100% CPU time
Date Sun, 20 Apr 2003 01:04:19 GMT
My apologies if the answer to this is already located
somewhere and I haven't found it for myself.

After a few minutes of moderate-to-heavy use, httpd's
threads seem to go out of control and take over 100%
of the CPU between them.  This seems only to happen
after they've served one of the scripts I made. 
However, 'top' reports that the httpd processes are
taking over the CPU, not the script (when the script
runs, it only uses 5% of the cpu at most, usually in
the 'pipewr' state because I don't have a very fast
connection).

I'm using OpenBSD 3.1, with a custom-compiled httpd
2.0.45.  I installed a PHP module, which I removed
temporarily for the purposes of testing only httpd.

Once this happens, httpd becomes pretty much
unresponsive and won't serve up any more data, until I
'apachectl stop' and 'start' it.

My script is a CGI program written in C.  I could only
get these results when I use this script, though I
don't know what my program might be doing that would
cause this.

I've tried this with 2.0.40, 42, and 44, with the same
results.

Below is the output from top, and the last few lines
of the error log (this line was repeated many time --
however, I don't know for certain this is related to
the problem).


Thanks very much!

Steve



output from top
===============

load averages:  3.53,  2.95,  2.47                    
                19:30:08
60 processes:  5 running, 52 idle, 3 zombie
CPU states: 98.1% user,  0.0% nice,  0.0% system, 
1.9% interrupt,  0.0% idle
Memory: Real: 53M/104M act/tot  Free: 389M  Swap:
3708K/1024M used/tot

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT    
TIME    CPU COMMAND
18650 nobody    64    0 1672K 1552K run   -       
2:00 33.11% httpd
 6319 nobody    63    0 1248K 1084K run   -       
2:00 32.76% httpd
   32 nobody    64    0 1480K 1396K run   -       
1:58 30.76% httpd
 8962 root      10    0   68K  108K sleep nanosl 
13:52  0.00% svscan
 2195 root       2    0  384K  324K idle  select  
6:31  0.00% sshd
18010 root       4    0  336K   76K sleep bpf     
6:03  0.00% pflogd
 4502 mysql      2    0   57M   41M sleep poll    
3:35  0.00% mysqld
20917 postgres   2    0 2092K  172K idle  select  
1:34  0.00% postgres
 4244 root       2    0  116K  240K sleep select  
0:34  0.00% syslogd
    ... ... ...



error log
=========

...
[Sat Apr 19 19:22:21 2003] [error] [client
68.39.37.51] limit: input done before limit
[Sat Apr 19 19:22:39 2003] [error] [client
68.39.37.51] limit: input done before limit
[Sat Apr 19 19:22:42 2003] [error] [client
68.39.37.51] limit: input done before limit
[Sat Apr 19 19:23:23 2003] [error] [client
68.39.37.51] limit: input done before limit
[Sat Apr 19 19:23:27 2003] [error] [client
68.39.37.51] limit: input done before limit


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message