Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 40642 invoked from network); 6 Feb 2006 15:24:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Feb 2006 15:24:57 -0000 Received: (qmail 76602 invoked by uid 500); 6 Feb 2006 15:24:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76490 invoked by uid 500); 6 Feb 2006 15:24:49 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 76457 invoked by uid 99); 6 Feb 2006 15:24:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 07:24:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 07:24:49 -0800 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k16FOS8u004245 for ; Mon, 6 Feb 2006 08:24:28 -0700 (MST) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IU900001UOC6Z@gadget-mail1.uk.sun.com> (original mail from John.Embretsen@Sun.COM) for derby-dev@db.apache.org; Mon, 06 Feb 2006 15:24:27 +0000 (GMT) Received: from [129.159.112.236] (khepri24.Norway.Sun.COM [129.159.112.236]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0IU9000TFUSRL1@gadget-mail1.uk.sun.com> for derby-dev@db.apache.org; Mon, 06 Feb 2006 15:24:27 +0000 (GMT) Date: Mon, 06 Feb 2006 16:23:47 +0100 From: John Embretsen Subject: Re: [jira] Updated: (DERBY-210) Network Server will leak prepared statements if not explicitly closed by the user until the connection is closed In-reply-to: <43E1C6A9.5000504@Sun.COM> To: derby-dev@db.apache.org Message-id: <43E76A03.7020308@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) References: <1656324081.1138801568878.JavaMail.jira@ajax.apache.org> <43E0E636.2020908@amberpoint.com> <43E1C6A9.5000504@Sun.COM> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N John Embretsen wrote: > I suspect there will be other issues that are uncovered by running the > DOTS test case (or variations of it) with various configurations, but > they may or may not be related to this particular issue. I will > certainly let you know as soon as possible if I notice any memory leaks. > I will run the test against a patched Derby trunk for a while longer, > and see how it goes. Here's an update: I was running the DOTS test case (unmodified) this weekend using a maximum number of 20 concurrent db connections. The Network Server threw an "OutOfMemoryError: PermGen space" about 55 hours into the test run, with same heap size as earlier (128 MB heap, 64 MB PermSpace). So it seems that the patch does not completely eliminate the problem associated with that particular test case. However, I do not believe this test failure is a showstopper for the patch. More testing is needed in order to determine if the failure is caused by * lack of explicitly closing all statements * using/compiling too many different statements (i.e., more than the current heap size can handle) * something else * a combination of the above -- John