Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 47564 invoked from network); 26 Feb 2009 23:11:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 23:11:41 -0000 Received: (qmail 43665 invoked by uid 500); 26 Feb 2009 23:11:40 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 43644 invoked by uid 500); 26 Feb 2009 23:11:40 -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 43635 invoked by uid 99); 26 Feb 2009 23:11:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 15:11:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.217.22.128] (HELO file1.syd.nuix.com) (203.217.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 23:11:31 +0000 Received: from [192.168.222.60] (monolith.syd.nuix.com [192.168.222.60]) by file1.syd.nuix.com (Postfix) with ESMTP id 9191D4A864B for ; Fri, 27 Feb 2009 10:11:08 +1100 (EST) Message-ID: <49A72199.4000402@nuix.com> Date: Fri, 27 Feb 2009 10:11:21 +1100 From: Daniel Noll Organization: Nuix Pty Ltd User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Derby Users Mailing List Subject: How many DRDAConnThreads is reasonable? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all. I'm seeing a situation where a Network Server is running out of memory creating new threads. I say NetworkServer, but it's embedded into a little server application which does a few other things, though serving Derby databases is its primary purpose. I had a look at the thread dump, and it looks kind of like this: 428 x DRDAConnThread 208 x derby.rawStoreDaemon 50 x miscellaneous other threads (mostly our own) 208 corresponds to the number of databases which are open. I imagine that 428 corresponds to the number of client connections. Memory limits were set to 1G heap, 200M PermGen. Heap is being lowered to 640M to see if that alleviates the problem a bit, but... Is there any way we can reduce thread usage by setting some special Derby flag? (e.g. some flag which makes it use selectors instead of having one thread per connection... or some way to reduce the number of raw store deamons.) Daniel -- Daniel Noll Forensic and eDiscovery Software Senior Developer The world's most advanced Nuix email data analysis http://nuix.com/ and eDiscovery software