Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 80396 invoked from network); 9 Jun 2006 22:17:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jun 2006 22:17:45 -0000 Received: (qmail 18140 invoked by uid 500); 9 Jun 2006 22:17:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 18118 invoked by uid 500); 9 Jun 2006 22:17:43 -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 18107 invoked by uid 99); 9 Jun 2006 22:17:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 15:17:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dremesh@gmail.com designates 66.249.82.192 as permitted sender) Received: from [66.249.82.192] (HELO wx-out-0102.google.com) (66.249.82.192) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 15:17:42 -0700 Received: by wx-out-0102.google.com with SMTP id i31so608200wxd for ; Fri, 09 Jun 2006 15:17:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IPdB4eTYsDvYGRjhHIjRNA1AnzVwXBAbv6UGDfm8OZGnR6tz1UWUZb+OXuq53AW4gX5n69TkaUtPQTobNPJ+41thIxn+XIHo8Bma6+ZKOTQvv/JcZctQ+jFL+FoC7Hn1uDZBi7LLMrXk4eHB/Juw0nc4gfhgzbLqDx5NsSAxvJs= Received: by 10.70.28.4 with SMTP id b4mr3931166wxb; Fri, 09 Jun 2006 15:17:21 -0700 (PDT) Received: by 10.70.130.6 with HTTP; Fri, 9 Jun 2006 15:17:21 -0700 (PDT) Message-ID: <58ed70f50606091517n206afad7ne98599d4c55e6693@mail.gmail.com> Date: Fri, 9 Jun 2006 15:17:21 -0700 From: "Deepa Remesh" To: "Derby Discussion" Subject: Re: Newbie questions on PreparedStatement in Derby In-Reply-To: <44891AE3.5030007@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4486EE10.3020709@sun.com> <4486FA00.7070805@gmail.com> <44871885.6050602@sun.com> <44891AE3.5030007@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/8/06, Farrukh Najmi wrote: > > OK. So I will make sure to explictly close all PreparedStatements in > finally blocks and not rely on Connection.close() so as to avoid: > > http://issues.apache.org/jira/browse/DERBY-210 > > One more related question. Are there known memory leaks if my > application also does not close regular Statements (as opposed to > PreparedStatements) > and relies on Connection.close()? Yes. The memory leak applies to regular Statements too. Please close all statement objects explicitly after use. Most of DERBY-210 has been fixed by the following sub-task http://issues.apache.org/jira/browse/DERBY-1103. These fixes will be available in the upcoming 10.1.3 release. The list of outstanding issues for DERBY-210 can be seen at http://issues.apache.org/jira/browse/DERBY-210#action_12370254 Thanks, Deepa