rougue httpd

From: John Deacon <jrd_at_star.ucl.ac.uk>
Date: Thu, 13 Sep 2001 11:26:45 +0100 (BST)

Hi -

I'm running Apache v1.3 on an AlphaStation 500/400 v5.1 machine.
I've just shut down the apache daemon but it's left a rogue process
that's sitting there getting 50% of the CPU time, 'top' and 'ps aux'
show the following:

  PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND
49387 root 50 0 3144K 524K run 69:46 50.80% httpd

USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND
root 49387 51.0 0.2 3.07M 512K ?? R Sep 12 01:10:20 /usr/local/apache/bin/httpd

I can't kill the process - 'kill -9 49387' does nothing.

The parent process is 'init'

# ps ax -O ppid=PARENT | grep 49387
49387 1 R ?? 01:12:09 httpd

There seem to be a bunch of connections still connected to the httpd port
(80):

# netstat -a | grep 80
tcp 417 0 zuaxps.star.ucl.ac.uk.80 24.69.255.205.4128 ESTABLISHED
tcp 0 0 zuaxps.star.ucl.ac.uk.smtp mail-d.bcc.ac.uk.58006 TIME_WAIT
tcp 394 0 zuaxps.star.ucl.ac.uk.80 ncnocm04.telenet-ops.be.17325 ESTABLISHED
tcp 395 0 zuaxps.star.ucl.ac.uk.80 webcacheM10b.cache.pol.co.uk.2025 ESTABLISHED
tcp 338 0 zuaxps.star.ucl.ac.uk.80 euproxy2.mmm.com.61865 ESTABLISHED
tcp 265 0 zuaxps.star.ucl.ac.uk.80 webcacheM10b.cache.pol.co.uk.60180 ESTABLISHED
tcp 358 0 zuaxps.star.ucl.ac.uk.80 netcache2-acld.auckland.clix.net.nz.34878 ESTABLISHED
tcp 524 0 zuaxps.star.ucl.ac.uk.80 euproxy2.mmm.com.54792 ESTABLISHED
tcp 0 0 *.80 *.* LISTEN


I assume that until these connections die off that I can't kill httpd.

Short of rebooting or shutting down the network processes is there any way
I can kill off the rogue httpd ?


 john

----------------------------------------------------------------------------
John Deacon | UCL Starlink Site Manager
Dept Physics and Astronomy | Email: jrd_at_star.ucl.ac.uk
University College London | Tel: 020 7679 7147
Gower Street London WC1E 6BT | Fax: 020 7679 7145
----------------------------------------------------------------------------
Received on Thu Sep 13 2001 - 10:28:14 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT