Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 82298 invoked from network); 18 Jun 2008 18:00:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2008 18:00:57 -0000 Received: (qmail 70985 invoked by uid 500); 18 Jun 2008 18:00:57 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 70967 invoked by uid 500); 18 Jun 2008 18:00: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 70955 invoked by uid 99); 18 Jun 2008 18:00:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 11:00:57 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.207.185] (HELO web81906.mail.mud.yahoo.com) (68.142.207.185) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Jun 2008 18:00:07 +0000 Received: (qmail 29279 invoked by uid 60001); 18 Jun 2008 17:59:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=oHJIQXijbDSqO8OVTU8RrOEcAqAIPgIz1tVibFbjfDEn5e8h+nXAE4JEohXpsQloOdZe5Nyv6mBt8RTp6QiCJvirj7Bj1Av0WNvD7rtaretxW9HYYA8BD5CH9M7LjSjz50ABzL4UI26uFljj1MSKEQACVoYvss/sJyVWbhqXg54=; X-YMail-OSG: 2I_n1GIVM1m9tpKHoLXH1HZf9nbbou4OfaN8KsZaiwaIEmtMRIUSVNaoGhVChcVSW6lnBlGuI4Abedg5oMh.Q07pfi2FLh2rRLc3 Received: from [66.253.97.130] by web81906.mail.mud.yahoo.com via HTTP; Wed, 18 Jun 2008 10:59:24 PDT Date: Wed, 18 Jun 2008 10:59:24 -0700 (PDT) From: Alex Rubin Reply-To: rubinalex@yahoo.com Subject: derby 10.1.3.1 memory leak and simple fix To: derby-user@db.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1000151167-1213811964=:28694" Content-Transfer-Encoding: 8bit Message-ID: <609074.28694.qm@web81906.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1000151167-1213811964=:28694 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi guys, For various reasons we have to use version 10.1.3.1 which has a memory leak when loaded in Embedded mode and multiple instances are started/stopped repeatedly. It leaks most of the used page cache. To get around this problem, I added the following code to the end of Clock.shutdown() holders.clear(); this.clear(); that did the trick and we've been running this in production for a few months with no issues. -Alex --0-1000151167-1213811964=:28694 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi guys,

For various reasons we have to use version 10.1.3.1 which has a memory leak when loaded in Embedded mode and multiple instances are started/stopped repeatedly. It leaks most of the used page cache.

To get around this problem, I added the following code to the end of Clock.shutdown()

holders.clear();
this.clear();

that did the trick and we've been running this in production for a few months with no issues.

-Alex


--0-1000151167-1213811964=:28694--