Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 36700 invoked from network); 28 Nov 2005 16:02:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 16:02:19 -0000 Received: (qmail 18094 invoked by uid 500); 28 Nov 2005 13:12:11 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 18068 invoked by uid 500); 28 Nov 2005 13:12:11 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 18056 invoked by uid 99); 28 Nov 2005 13:12:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 05:12:11 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.195.181.50] (HELO webRack01.Segel.com) (65.195.181.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 05:13:41 -0800 Received: by webRack01.Segel.com (Postfix, from userid 1001) id CFAAF17E3C; Mon, 28 Nov 2005 08:17:21 -0600 (CST) From: Michael Segel Organization: MSCC To: "Derby Discussion" Subject: Re: Workarounds for too many open files? Date: Mon, 28 Nov 2005 08:17:21 -0600 User-Agent: KMail/1.8 References: <1132906493.13290.122.camel@pc977.sb.statsbiblioteket.dk> <1133172624.31586.33.camel@pc977.sb.statsbiblioteket.dk> In-Reply-To: <1133172624.31586.33.camel@pc977.sb.statsbiblioteket.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511280817.21648.msegel@segel.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Monday 28 November 2005 04:10, Lars Clausen wrote: I guess anyone who's going to try and create a 100GB database will also run in to this problem. (Remember the discussions on scalability?) Since I haven't seen the code on how Derby stores data to the disk, why so many files per index? A possible, but ugly work around is to create the index as you load the table. (Ugly in that you'll take a performance hit. However, this should work.) -HTH... > > It turns out that this happens during index creation. I was able to > import the text file and run selects on it, but when I try to create an > index: > > Derby creates files in the tmp directory at a rate of about 8 per > second. If it doesn't close all of these, it would run out of FDs > (ulimit 1024) before long. > > I would file a bug report, but db.apache.org isn't responding. > > -Lars -- Michael Segel Principal MSCC 312 952- 8175 [M]