From owner-freebsd-questions Fri Dec 3 6:59:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.dnt.md (zeus.dnt.md [195.138.124.37]) by hub.freebsd.org (Postfix) with ESMTP id 8EDB815054 for ; Fri, 3 Dec 1999 06:59:02 -0800 (PST) (envelope-from sl@zeus.dnt.md) Received: from localhost (sl@localhost) by zeus.dnt.md (8.9.3/8.9.3) with ESMTP id QAA41929 for ; Fri, 3 Dec 1999 16:59:00 +0200 (EET) Date: Fri, 3 Dec 1999 16:58:59 +0200 (EET) From: slava revutchi To: freebsd-questions@freebsd.org Subject: FIN_WAIT_1 and netstat -an Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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