Hi all,

For a few days now I have had a few httpd(s) in a lockf state when I look
at top. What does this mean and what should I do with them? I am running
FreeBSD 4.7 with apache+mod_ssl-1.3.27.

Here is what top looks like:
  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
27307 ns        28   0  1976K  1044K RUN      0:00  5.45%  1.61% top
   96 root       2   0   608K   252K select  12:31  0.00%  0.00% natd
20802 www       18   0  9848K  6720K lockf    1:06  0.00%  0.00% httpd
20800 www       18   0 10196K  7048K lockf    0:57  0.00%  0.00% httpd
20798 www       18   0  9908K  6764K lockf    0:57  0.00%  0.00% httpd
20943 www       18   0 10008K  6868K lockf    0:56  0.00%  0.00% httpd
20945 www       18   0 10920K  7780K lockf    0:56  0.00%  0.00% httpd
20801 www       18   0 10064K  6920K lockf    0:55  0.00%  0.00% httpd
20799 www       18   0  9844K  6696K lockf    0:48  0.00%  0.00% httpd
20804 www       18   0  9904K  6764K lockf    0:46  0.00%  0.00% httpd
20805 www       18   0  9776K  6636K lockf    0:44  0.00%  0.00% httpd
  144 root       2   0  2916K  1732K select   0:44  0.00%  0.00% sendmail

here is some other info that may help.
# ps waux | grep http
root  20797  0.0  1.0  7312 3968  ??  Ss   Tue06PM   0:06.41 /usr/local/sbin/htt
pd -DSSL
www   20798  0.0  1.7  9908 6764  ??  I    Tue06PM   0:56.74 /usr/local/sbin/htt
pd -DSSL
www   20799  0.0  1.7  9844 6696  ??  I    Tue06PM   0:48.18 /usr/local/sbin/htt
pd -DSSL
www   20800  0.0  1.8 10196 7048  ??  I    Tue06PM   0:57.00 /usr/local/sbin/htt
pd -DSSL
www   20801  0.0  1.8 10064 6920  ??  I    Tue06PM   0:54.59 /usr/local/sbin/htt
pd -DSSL
www   20802  0.0  1.7  9848 6720  ??  I    Tue06PM   1:06.22 /usr/local/sbin/htt
pd -DSSL
www   20804  0.0  1.7  9904 6764  ??  I    Tue06PM   0:45.63 /usr/local/sbin/htt
pd -DSSL
www   20805  0.0  1.7  9776 6636  ??  I    Tue06PM   0:44.01 /usr/local/sbin/htt
pd -DSSL
www   20943  0.0  1.8 10008 6868  ??  I    Tue06PM   0:56.30 /usr/local/sbin/htt
pd -DSSL
www   20944  0.0  1.8 10044 6904  ??  I    Tue06PM   0:40.37 /usr/local/sbin/htt
pd -DSSL
www   20945  0.0  2.0 10920 7780  ??  I    Tue06PM   0:56.19 /usr/local/sbin/htt
pd -DSSL

# netstat -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0     36  sundive.ssh            10.0.0.3.2967          ESTABLISHED
tcp4       0      0  *.http                 *.*                    LISTEN
tcp4       0      0  *.https                *.*                    LISTEN
tcp4       0      0  *.3306                 *.*                    LISTEN
tcp4       0      0  *.submission           *.*                    LISTEN
tcp4       0      0  *.smtp                 *.*                    LISTEN
tcp4       0      0  *.ssh                  *.*                    LISTEN
tcp46      0      0  *.ssh                  *.*                    LISTEN
tcp4       0      0  *.ftp                  *.*                    LISTEN
udp4       0      0  *.snmp                 *.*
udp4       0      0  localhost.1046         localhost.1046
udp4       0      0  *.syslog               *.*
udp6       0      0  *.syslog               *.*
udp4       0      0  *.bootpc               *.*
div4       0      0  *.natd                 *.*
icm4       0      0  *.*                    *.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
cfce4a00 stream      0      0        0 cfce4960        0        0 /tmp/.s.PGSQL.
5432
cfce4960 stream      0      0        0 cfce4a00        0        0
cfce4b40 stream      0      0 cfe08740        0        0        0 /tmp/screens/S
-ns/316.ttyp0.sundive
cfce4be0 stream      0      0 cfd9e340        0        0        0 /tmp/mysql.soc
k
cfce4d20 stream      0      0 cfd5ffc0        0        0        0 /tmp/.s.PGSQL.
5432
cfce4aa0 dgram       0      0        0 cfce4f00        0 cfce4dc0
cfce4dc0 dgram       0      0        0 cfce4f00        0 cfce4e60
cfce4e60 dgram       0      0        0 cfce4f00        0        0
cfce4f00 dgram       0      0 cfcdf8c0        0 cfce4aa0        0 /var/run/log



Thanks,

Nigel

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to