Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 35103 invoked from network); 21 Apr 2008 07:23:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Apr 2008 07:23:39 -0000 Received: (qmail 92559 invoked by uid 500); 21 Apr 2008 07:23:40 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 92531 invoked by uid 500); 21 Apr 2008 07:23: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 92519 invoked by uid 99); 21 Apr 2008 07:23:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 00:23:39 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 07:22:54 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m3L7N5Cq005130 for ; Mon, 21 Apr 2008 07:23:06 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JZN00101Z3ZYV00@fe-emea-10.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-user@db.apache.org; Mon, 21 Apr 2008 08:23:05 +0100 (BST) Received: from localhost ([129.159.112.134]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JZN00EPSZ63QQA0@fe-emea-10.sun.com> for derby-user@db.apache.org; Mon, 21 Apr 2008 08:22:52 +0100 (BST) Date: Mon, 21 Apr 2008 09:22:51 +0200 From: Knut Anders Hatlen Subject: Re: Memory Management In-reply-to: <425706.86956.qm@web34305.mail.mud.yahoo.com> Sender: Knut.Hatlen@Sun.COM To: Derby Discussion Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <425706.86956.qm@web34305.mail.mud.yahoo.com> User-Agent: Gnus/5.110008 (No Gnus v0.8) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org David Byrne writes: > Is there a way to limit the memory used by an embedded instance > of Derby? The documentation only references limiting total Java heap size, but > that still allows Derby to hog memory from my other objects. Hi David, I'm afraid there is no way to set a hard limit on how much memory Derby is allowed to consume. Normally, the page cache is what takes most memory in a Derby instance. You can limit the size of the page cache with the derby.storage.pageCacheSize property. See http://db.apache.org/derby/docs/dev/tuning/rtunproper81359.html. -- Knut Anders