Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2CC1CB4E for ; Sat, 9 Aug 2014 17:59:10 +0000 (UTC) Received: (qmail 17855 invoked by uid 500); 9 Aug 2014 17:59:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 17804 invoked by uid 500); 9 Aug 2014 17:59:08 -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 17791 invoked by uid 99); 9 Aug 2014 17:59:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Aug 2014 17:59:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of redmumba@gmail.com designates 209.85.220.47 as permitted sender) Received: from [209.85.220.47] (HELO mail-pa0-f47.google.com) (209.85.220.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Aug 2014 17:59:03 +0000 Received: by mail-pa0-f47.google.com with SMTP id kx10so8917122pab.34 for ; Sat, 09 Aug 2014 10:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type; bh=SNec8hoGEPCLNbDa9kmLzoufpHMOOfe2dWK7bm5x+1w=; b=Rna5I8V1u9IbYwWLm/bxukjurysbkTkEGYj6nYtebRjjAM/8uXI/ixQftYqT5vJSlO 0AZ5083GkttQj3R/ozKR9LTYBg4ThH5GNBZKegkgLciEQm5GSKDMGC3MI2gpBe8iV6rI L155pUEvvLjFoVltm9x8pLGKv2ODdqnr3RJjDwq7vPEWrP5+rNjC1S9DB895TfDx4mcg oFxW/GvNchk7bwZv1TyDm0vzBGBGR9fHKfzpVwOTPcklmq2qXNxwPVJVTzs0w8EwdPmM YRnrJsn4P5y4bCJHsA8tSI4cDPkjqBTRGh6bFxcwko5rGhK6C5u0Y0rWssi+EFBsvC3U b+CA== X-Received: by 10.70.40.131 with SMTP id x3mr32207941pdk.22.1407607123394; Sat, 09 Aug 2014 10:58:43 -0700 (PDT) Received: from amcfague-mac (c-24-19-235-162.hsd1.wa.comcast.net. [24.19.235.162]) by mx.google.com with ESMTPSA id zh7sm38456331pab.1.2014.08.09.10.58.42 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Aug 2014 10:58:42 -0700 (PDT) Date: Sat, 9 Aug 2014 10:58:41 -0700 From: Andrew To: Tyler Hobbs , user@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: Re: too many open files X-Mailer: Airmail (247) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="53e66151_66ef438d_97fe" X-Virus-Checked: Checked by ClamAV on apache.org --53e66151_66ef438d_97fe Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I just had a generator that (in the incorrect way) had a cluster as a mem= ber variable, and would call .connect() repeatedly. =C2=A0I =5Fthought=5F= , incorrectly, that the Session was thread unsafe, and so I should reques= t a separate Session each time=E2=80=94obviously wrong in hind sight. There was no special logic; I had a restriction of about 128 connections = per host, but the connections were in the 100s of thousands, like the OP = mentioned. =C2=A0Again, I=E2=80=99ll see about reproducing it on Monday, = but just wanted the repro steps (overall) to live somewhere in case I can= =E2=80=99t. :) Andrew On August 8, 2014 at 4:08:50 PM, Tyler Hobbs (tyler=40datastax.com) wrote= : On =46ri, Aug 8, 2014 at 5:52 PM, Redmumba wrote: Just to chime in, I also ran into this issue when I was migrating to the = Datastax client. Instead of reusing the session, I was opening a new sess= ion each time. =46or some reason, even though I was still closing the ses= sion on the client side, I was getting the same error. Which driver=3F=C2=A0 If you can still reproduce this, would you mind ope= ning a ticket=3F (https://datastax-oss.atlassian.net/secure/BrowseProject= s.jspa=23all) -- Tyler Hobbs DataStax --53e66151_66ef438d_97fe Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline