Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 5259 invoked from network); 12 Apr 2010 23:21:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 23:21:03 -0000 Received: (qmail 90003 invoked by uid 500); 12 Apr 2010 23:21:02 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 89974 invoked by uid 500); 12 Apr 2010 23:21:02 -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 89967 invoked by uid 99); 12 Apr 2010 23:21:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 23:21:02 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=AWL,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [192.18.43.24] (HELO sca-ea-mail-1.sun.com) (192.18.43.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 23:20:53 +0000 Received: from dm-uk-01.uk.sun.com ([129.156.101.115]) by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o3CNKW0u029182 for ; Mon, 12 Apr 2010 23:20:32 GMT Received: from barman.uk.sun.com (barman.UK.Sun.COM [129.156.132.12]) by dm-uk-01.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o3CNKV5g015508 for ; Tue, 13 Apr 2010 00:20:31 +0100 (BST) Received: from vpn-129-150-121-16.uk.sun.com ([129.150.121.16]) by barman.uk.sun.com with esmtp (Exim 4.42) id 1O1Svf-0000O4-6b for derby-user@db.apache.org; Tue, 13 Apr 2010 00:20:31 +0100 Message-ID: <4BC3AABE.7010301@oracle.com> Date: Tue, 13 Apr 2010 00:20:30 +0100 From: Alan Burlison Organization: Oracle User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100131 Thunderbird/3.0.1 MIME-Version: 1.0 To: derby-user@db.apache.org Subject: Re: Derby causing a classloader leak References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 12/04/2010 23:54, Jason von Nieda wrote: > if I > run this test code in a loop instead of a single run it eventually causes an > OOM PermGen space, which is the same error our app experiences after a few > restarts. By simply not running the two SQL statements the test can run > indefinitely without an OOM. Are you calling close() on all the statement and result handles? -- Alan Burlison --