Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 39227 invoked from network); 3 Nov 2006 09:40:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2006 09:40:47 -0000 Received: (qmail 85739 invoked by uid 500); 3 Nov 2006 09:40:57 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 85715 invoked by uid 500); 3 Nov 2006 09:40:57 -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 85704 invoked by uid 99); 3 Nov 2006 09:40:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 01:40:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 01:40:44 -0800 Received: from d1-emea-10.sun.com (d1-emea-10.sun.com [192.18.2.120] (may be forged)) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id kA39eMAR025892 for ; Fri, 3 Nov 2006 09:40:22 GMT Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0J8500C01ER5O900@d1-emea-10.sun.com> (original mail from John.Embretsen@Sun.COM) for derby-user@db.apache.org; Fri, 03 Nov 2006 09:40:22 +0000 (GMT) Received: from [129.159.112.236] by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0J8500FWPEV9T8KN@d1-emea-10.sun.com> for derby-user@db.apache.org; Fri, 03 Nov 2006 09:40:22 +0000 (GMT) Date: Fri, 03 Nov 2006 10:40:21 +0100 From: John Embretsen Subject: Re: Heap and stack size for Derby server In-reply-to: <454AFFFA.1010107@intland.com> Sender: John.Embretsen@Sun.COM To: Derby Discussion Reply-to: derby-user@db.apache.org Message-id: <454B0E85.7020600@Sun.COM> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <4548B82D.2030301@intland.com> <454AFFFA.1010107@intland.com> User-Agent: Thunderbird 1.5.0.5 (X11/20060730) X-Virus-Checked: Checked by ClamAV on apache.org Robert Enyedi wrote: > Does the lack of answers mean that there are no best practices in > setting the stack and heap limits for Derby? Well, not specifically, that I know of. It all depends on how you (and clients connecting to your server) are using Derby. Default stack sizes work very well in most cases. I have little experience with StackOverflowErrors myself, but there are several Jira issues you can check out for comments on adjusting _heap_ size, for example DERBY-1713 (http://issues.apache.org/jira/browse/DERBY-1713) and DERBY-1564. I guess someone with more knowledge about Derby's internals may be able to tell you why your specific query requires a larger stack size. As for heap size, I would not run the network server with any less than 32 MB of max heap space, regardless of the client code. Most of the tests I've run against Derby work fine with default heap size (usually minimum 64 MB max size, depending on JVM and hardware). Your mileage may vary... -- John