Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 74812 invoked from network); 31 Aug 2006 19:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 19:40:37 -0000 Received: (qmail 8775 invoked by uid 500); 31 Aug 2006 19:39:54 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 8081 invoked by uid 500); 31 Aug 2006 19:39:51 -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 7152 invoked by uid 99); 31 Aug 2006 19:39:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 12:39:46 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 12:22:31 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GIs6w-0004rV-UD for derby-user@db.apache.org; Thu, 31 Aug 2006 21:21:59 +0200 Received: from 204.245.215.66 ([204.245.215.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 21:21:58 +0200 Received: from mark.hellkamp by 204.245.215.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 21:21:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Mark Hellkamp Subject: Re: Concurrent access problems? Date: Thu, 31 Aug 2006 19:21:31 +0000 (UTC) Lines: 29 Message-ID: References: <20060831143837.C0BE32515F@dbrack01.segel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 204.245.215.66 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N writes: > > [mjs] > The person who created the JIRA issue is the one who said "Large amounts of > data". > > 10K rows of 9 columns, is not a "large amount" of data. > > While Mark posted that he tried using MySQL instead of Derby, one has to ask > if he tried running the query independent of his app. > > The point is that there are a lot of variables that can impact performance. > Spring and Hibernate are two of them. > > So unless someone introduced a "bug" in the latest release, I'm a bit > skeptical of the issue. > > The application is querying about 24 tables in all for each request that comes in. The number of rows in the tables range from 0 to over 30,000 in my current testing. As I add more concurrent request threads the database continues to allocate additional process handles (this is on Windows). Using Process Explorer (from www.sysinternals.com) I can see that the Derby process is allocating Semaphores and does not appear to ever release them. As more data is added to the tables, the process handle count continues to grow even though the results of the queries remain the same. Derby appears to be allocating resources (locks?) but never cleaning them up.