httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Apache = CPU hog? (fwd)
Date Mon, 29 Apr 1996 16:38:40 GMT
Rob Hartill wrote:
> 
> 
> Anyone have any ideas?

I wonder... I read this slightly worrying stuff in man signal on SCO 5...

          The signal catching function is not executed during certain slow
          processes even though a signal has been caught. Slow processes are
          considered to be read(S), write(S), open(S), or ioctl(S) system
          calls on a slow device (like a terminal; but not a file), a pause
          (S) routine, or during a wait(S) routine that does not return
          immediately due to the existence of a previously stopped or zombie
          process. Then the interrupted system call may return a -1 to the
          calling process with errno set to EINTR.

sigaction() does not have this qualification. Could this be the problem?

I'm fairly sure I've seen SCO 5 fail to clear up the children, too.

Cheers,

Ben.

> 
> > Further to my posting, here is an example of a session (for apache 1.1b2 
> > on Solaris 2.5) I think this shows adequately what happens - and I waited
> > quite a while between commands.  Would be a pain for more than a few 
> > servers, and could mean the thing is down for a few minutes while I
> > do this.  We actually have a test server which we "swap" with the live
> > one when we want to change over.
> > 
> > 
> > Cheers
> > Keep up the fab work
> > Mike
> > 
> > 
> [51]> !!
> ps | grep mjs
>      mjs 12265 14928  0   Apr 22 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  5761  9327  1 17:13:08 pts/2    0:00 grep mjs
>      mjs 23942 23939  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26140 14928  0   Apr 18 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 21765 14928  0   Apr 17 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 26144 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23946 23939  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root 14928     1  0   Apr 11 ?        0:17 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  9327  9325  1   Apr 26 pts/2    0:02 -zsh
>     root 23939     1  0   Apr 24 ?        0:04 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23948 23939  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23944 23939  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23940 23939  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26141 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
> [51]> su
> Password: 
> celebes# kill -15 23939
> celebes# ps -ef | grep mjs
>      mjs 12265 14928  0   Apr 22 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23942     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26140 14928  0   Apr 18 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 21765 14928  0   Apr 17 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 26144 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23946     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root 14928     1  0   Apr 11 ?        0:17 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  9327  9325  0   Apr 26 pts/2    0:02 -zsh
>      mjs 23948     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23944     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23940     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root  5767  5762  1 17:13:21 pts/2    0:00 grep mjs
>      mjs 26141 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
> celebes# !!
> ps -ef | grep mjs
>      mjs 12265 14928  0   Apr 22 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23942     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26140 14928  0   Apr 18 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 21765 14928  0   Apr 17 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 26144 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23946     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root 14928     1  0   Apr 11 ?        0:17 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  9327  9325  0   Apr 26 pts/2    0:02 -zsh
>     root  5769  5762  0 17:13:25 pts/2    0:00 grep mjs
>      mjs 23948     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23944     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23940     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26141 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
> celebes# !!
> ps -ef | grep mjs
>      mjs 12265 14928  0   Apr 22 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23942     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26140 14928  0   Apr 18 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 21765 14928  0   Apr 17 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 26144 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23946     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root 14928     1  0   Apr 11 ?        0:17 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  9327  9325  0   Apr 26 pts/2    0:02 -zsh
>      mjs 23948     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23944     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23940     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root  5771  5762  0 17:13:30 pts/2    0:00 grep mjs
>      mjs 26141 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
> celebes# !!
> ps -ef | grep mjs
>      mjs 12265 14928  0   Apr 22 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23942     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26140 14928  0   Apr 18 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 21765 14928  0   Apr 17 ?        0:01 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 26144 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs 23946     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>     root 14928     1  0   Apr 11 ?        0:17 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
>      mjs  9327  9325  0   Apr 26 pts/2    0:02 -zsh
>     root  5773  5762  0 17:13:37 pts/2    0:00 grep mjs
>      mjs 23948     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23944     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 23940     1  0   Apr 24 ?        0:00 /home/mjs/httpd/httpd -d /home/mjs/httpd
>      mjs 26141 14928  0   Apr 18 ?        0:00 /home/mjs/httpsd/httpsd -d /home/mjs/httpsd
> celebes# kill 23942 23946 23948 23944 23940
> 
> 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message