Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 75701 invoked from network); 19 Apr 2010 15:56:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 15:56:33 -0000 Received: (qmail 84748 invoked by uid 500); 19 Apr 2010 15:56:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 84729 invoked by uid 500); 19 Apr 2010 15:56:32 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 84721 invoked by uid 99); 19 Apr 2010 15:56:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 15:56:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ingramchen@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pw0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 15:56:27 +0000 Received: by pwj2 with SMTP id 2so3453109pwj.31 for ; Mon, 19 Apr 2010 08:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=H69aPiq0kq2cxzrlMvKXfe6pBj8/mMx1DXo3sMuON9E=; b=q85haPEY+yIfoaUmVQtLWg+0LtBEsh8VbTRCpG97IznJ+rCROpH9XwRYgMqTk2iHHd kYH7dsvYbTOfcxWMuU2PqM7tRVSzMXGIAbK95/UK5RHtZZ9PmARRfMqHVlK8lTk2BRlB 1Et0yJpM3yR216oTh5lCaO8eHrxDwepjhuaiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=G+Svun1L+hQCW415SJpKeeXC1va/muPHthbb/RBHKjUVdGIb0pJxXxqWeZHWQVXtl4 j5BC8U+xB0yz52787B8Zrddg1lojDJke4zlObci1H5pcBQxsm+hBxcrKZxum+SS5WnBL YjjLgwJgeJMNIZLf5dsuPJjDsXhUkAdbzRc5A= MIME-Version: 1.0 Received: by 10.141.22.21 with HTTP; Mon, 19 Apr 2010 08:56:05 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 Apr 2010 23:56:05 +0800 Received: by 10.141.188.33 with SMTP id q33mr2110483rvp.8.1271692565938; Mon, 19 Apr 2010 08:56:05 -0700 (PDT) Message-ID: Subject: Re: tcp CLOSE_WAIT bug From: Ingram Chen To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000e0cd17ed8a80467048498ff3d --000e0cd17ed8a80467048498ff3d Content-Type: text/plain; charset=UTF-8 Thank your information. We do use connection pools with thrift client and ThriftAdress is on port 9160. Those problematic connections we found are all in port 7000, which is internal communications port between nodes. I guess this related to StreamingService. On Mon, Apr 19, 2010 at 23:46, Brandon Williams wrote: > On Mon, Apr 19, 2010 at 10:27 AM, Ingram Chen wrote: > >> Hi all, >> >> We have observed several connections between nodes in CLOSE_WAIT after >> several hours of operation: >> > > This is symptomatic of not pooling your client connections correctly. Be > sure you're using one connection per thread, not one connection per > operation. > > -Brandon > -- Ingram Chen online share order: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen --000e0cd17ed8a80467048498ff3d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank your information.

We do use connection pools with thrift clien= t and ThriftAdress is on port 9160.

Those problematic connections we= found are all in port 7000, which is internal communications port between<= br> nodes. I guess this related to StreamingService.

On Mon, Apr 19, 2010 at 23:46, Brandon Williams &= lt;driftx@gmail.com> wrot= e:
On Mon, Apr 19, 2010 at 10:27 AM, Ingram Chen <= span dir=3D"ltr"><ingramchen@gmail.com> wrote:
Hi all,

=C2=A0=C2=A0=C2=A0 We have observed several connections betw= een nodes in CLOSE_WAIT after several hours of operation:
<= div>
This is symptomatic of not pooling your client con= nections correctly. =C2=A0Be sure you're using one connection per threa= d, not one connection per operation.

-Brandon



--
Ingram Chen
online s= hare order: http://dinbendon.net
b= log: http://= www.javaworld.com.tw/roller/page/ingramchen
--000e0cd17ed8a80467048498ff3d--