From owner-freebsd-questions Thu Jan 4 18:13:55 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 18:13:49 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id C4A5937B400 for ; Thu, 4 Jan 2001 18:13:48 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f052CTG69318; Thu, 4 Jan 2001 18:12:29 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 04 Jan 2001 18:13:29 -0800 (PST) From: John Baldwin To: Dan Phoenix Subject: RE: apache problems Cc: questions@FreeBSD.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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