From owner-freebsd-questions Thu Jan 4 18:48:45 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 18:48:42 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from gandalf.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with ESMTP id 520AE37B400; Thu, 4 Jan 2001 18:48:42 -0800 (PST) Received: from localhost (dphoenix@localhost) by gandalf.bravenet.com (8.10.1/8.10.1) with ESMTP id f052mWL14040; Thu, 4 Jan 2001 18:48:33 -0800 (PST) X-Authentication-Warning: gandalf.bravenet.com: dphoenix owned process doing -bs Date: Thu, 4 Jan 2001 18:48:32 -0800 (PST) From: Dan Phoenix To: John Baldwin Cc: questions@FreeBSD.org Subject: RE: apache problems In-Reply-To: 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 [root@fosco dphoenix]# netstat -a|grep http|grep ESTABLISHED|wc -l 141 [root@fosco dphoenix]# ps aux|grep httpd|wc -l 186 [root@fosco dphoenix]# netstat -a|grep http|grep TIME_WAIT|wc -l 217 [root@fosco dphoenix]# netstat -a|grep http|wc -l 537 and the load balancer report 1001 connections...netstat -a|grep http does not even add up to this. fosco Alive 1001 1 42 1102 So what i can conclude from what you said is that there are more connections waiting to close for some strange reason than establishing connection....btw what is FIN_1 in netstat? Anyways something is wrong here...1001 connections the load balancer is reporting.....those 1102 state transitions were from earlier today when i got rid of thttpd which was causing connection resets...moved back to ports collection of apache13 static server. Anyone with ideas or anyone that has an arrowpoint LB? On Thu, 4 Jan 2001, John Baldwin wrote: > Date: Thu, 04 Jan 2001 18:13:29 -0800 (PST) > From: John Baldwin > To: Dan Phoenix > Cc: questions@FreeBSD.org > Subject: RE: apache problems > > > On 05-Jan-01 Dan Phoenix wrote: > > > > [root@fosco dphoenix]# netstat -a|grep http |wc -l > > 560 > > [root@fosco dphoenix]# ps aux|grep httpd|wc -l > > 169 > > [root@fosco dphoenix]# > > > > this is what the arrow point load balancer reports. > > fosco Alive 1019 1 23 1102 > > > > this is really nuts. > > Lb and netstat are reporting way more connections then there are > > httpd deamons running...maxclients is set at 500 for this static server > > ...webtree is on the harddrive..no nfs for this one. > > > > top reports.... > > 2062 nobody 2 0 2108K 1760K sbwait 0:01 0.00% 0.00% httpd > > 2157 nobody 2 0 2108K 1760K sbwait 0:01 0.00% 0.00% httpd > > > > all my httpd processes is the sbwait state....is that normal? > > can anyone help out? I just don;t understand why LB netstat and amount > > of apache processes would not be the same@! > > sbwait is normal. Perhaps you have connections that are still negotiating the > TCP close handshake even though apache has close(2)'d the socket and gone on to > something else. Look at the netstat output to see what state the connections > are in. For example, you will have sockets in LISTEN that are waiting for a > connection to come in, sockets in ESTABLISHED which are active connections, and > connections in TIME_WAIT which are waiting to close. > > > -- > > Dan > > Also, _please_ trim your signature. Some people have to pay to download all of > that, so be courteous and don't waste so much time. 4 lines is usually > considered about the maximum length for a signature. > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message