httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon J. Gerraty" <...@quick.com.au>
Subject apache_1.03 and 1.1.1 burn CPU.
Date Mon, 22 Jul 1996 13:46:01 GMT
I've been running apache_1.03a as httpd (and with Ben's SSL patches as
httpsd) for quite a while, recently I've updated to 1.1.1 and the
problem described below has continued.

On a daily basis, I stop/start the servers - to help with a VM leak in
NetBSD.  About 1 day in three, when I run top in the morning, I'd have a
httpsd that had been using all the CPU since being started at about
2am.

I thought it might have been an Apache-SSL thing, but when I stopped
running httpsd for a while, I got the same thing with httpd.

I'm now getting it with apache_1.1.1 too.  I kill -6'd the sucker just
before and gdb says:

root:10646# gdb /httpd/httpsd /chroot/httpsd_apache_1..core  
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
Core was generated by `httpsd_apache_1.'.
Program terminated with signal 6, Abort trap.
#0  0x2ff8 in count_idle_servers () at http_main.c:789
789             if (scoreboard_image[i].status == SERVER_READY
(gdb) bt
#0  0x2ff8 in count_idle_servers () at http_main.c:789
#1  0x42b5 in standalone_main (argc=3, argv=0xf7bfdbc0) at http_main.c:1473
#2  0x44ee in main (argc=3, argv=0xf7bfdbc0) at http_main.c:1544
(gdb) p i
$1 = 126
(gdb) 

I can leave the core file around for a while - if anyone can suggest
interesting things to look for.  

FYI I'm running on:

NetBSD zen.void.oz.au 1.1A-1996.02.03 NetBSD 1.1A-1996.02.03 (ZEN) #1: Wed Feb  7 22:48:27
EST 1996     root@zen.void.oz.au:/f1/usr.src/sys/arch/i386/compile/ZEN i386

the cpu stats when the thing is burning (last three figures are
user sys idle cpu):

960706 01:02:13 12 93 0.45 0.27 0.49 46442 48% 0 0 0 0 1 99
/etc/daily runs - restarts http*d
960706 02:02:19 12 95 2.39 0.93 0.41 46874 48% 1 1 0 25 75 0
960706 03:02:12 12 90 1.35 1.16 1.10 46874 48% 1 0 0 29 71 0
960706 04:02:15 12 97 2.68 2.39 2.17 46410 48% 2 2 0 61 39 0
960706 05:02:15 12 97 2.47 2.18 2.13 45738 49% 2 0 0 61 38 0
960706 06:02:16 12 101 3.61 2.75 2.39 45722 49% 2 0 0 59 41 0
960706 07:02:14 12 97 2.79 2.72 2.51 45482 49% 2 0 0 61 39 0
960706 08:02:15 12 97 2.35 2.28 2.42 45162 50% 2 0 0 61 39 0
960706 09:02:12 12 90 1.43 1.19 1.26 45850 49% 1 0 0 28 72 0
960706 10:02:11 12 90 1.42 1.15 1.11 45850 49% 1 0 0 23 77 0
960706 11:02:11 12 90 1.30 1.15 1.10 45850 49% 1 0 0 29 71 0
kill httpd
960706 12:02:18 12 97 0.94 0.37 0.30 45914 49% 0 0 0 1 2 97

I can probably hunt this down myself, but any pointers would be
greatly appreciated.

--sjg

----- End of forwarded message from Simon J. Gerraty -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message