Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 1999 16:58:59 +0200 (EET)
From:      slava revutchi <sl@zeus.dnt.md>
To:        freebsd-questions@freebsd.org
Subject:   FIN_WAIT_1 and netstat -an
Message-ID:  <Pine.BSF.4.05.9912031637410.37079-100000@zeus.dnt.md>

next in thread | raw e-mail | index | archive | help

Greetings,

I noticed a weird behaviour of a CGI I am running to provide 
a web based email interface. The process of this cgi called 
"login" hangs consuming lots of CPU. This happens when it is invoked
via the web and the tcp connection is broken for some reason (modem
disconnectfor example).  Before I contact the author of the cgi I need to
be sure that this is a problem with his program not handling this kind of
situations. Here is a relevant output of netstat -an and ps aux:
(195.138.124.36 is the web server and 212.56.193.228 is a client on
dial-up)

Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address         Foreign Address       (state)
tcp        0    143 195.138.124.36.80     212.56.193.228.3818   FIN_WAIT_1
tcp        0    141 195.138.124.36.80     212.56.193.228.3817   FIN_WAIT_1
tcp        0    142 195.138.124.36.80     212.56.193.228.3816   FIN_WAIT_1
tcp        0   5607 195.138.124.36.80     212.56.193.228.3769   FIN_WAIT_1

USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
root   47229 22.3  0.7   640  436  ??  R    10:24AM   2:19.38 login
root   47655 22.9  0.7   640  436  ??  R    10:28AM   0:15.73 login
root   47450 23.3  0.7   640  436  ??  R    10:26AM   0:49.75 login
root   47313 22.8  0.7   640  436  ??  R    10:25AM   1:27.67 login

These four processes of login hang consuming over 22% of CPU each and
whose tcp sockets are in the FIN_WAIT_1 state.
Also can anyone explain the exact meaning of FIN_WAIT_1 and FIN_WAIT_2 ?


Any advice is appreciated.
Thank you.

slava revutchi



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9912031637410.37079-100000>