Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 33616 invoked from network); 22 May 2008 14:02:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2008 14:02:27 -0000 Received: (qmail 84824 invoked by uid 500); 22 May 2008 14:02:21 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 84746 invoked by uid 500); 22 May 2008 14:02:21 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 84709 invoked by uid 99); 22 May 2008 14:02:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 07:02:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 14:01:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D755C234C121 for ; Thu, 22 May 2008 07:01:55 -0700 (PDT) Message-ID: <1410257675.1211464915880.JavaMail.jira@brutus> Date: Thu, 22 May 2008 07:01:55 -0700 (PDT) From: "Jasha Joachimsthal (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Reopened: (COCOON-1574) Memory Leak with XMLFileModule MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jasha Joachimsthal reopened COCOON-1574: ---------------------------------------- JXPathHelper.getAttribute() now always returns an Object of type String instead of any Object which breaks implementations that do not expect a String. > Memory Leak with XMLFileModule > ------------------------------ > > Key: COCOON-1574 > URL: https://issues.apache.org/jira/browse/COCOON-1574 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core > Affects Versions: 2.2 > Environment: Operating System: Windows XP > Platform: PC > Reporter: Ron Blaschke > Assignee: Ralph Goers > Fix For: 2.1.11 > > > I'm currently looking into a memory leak issue at Apache Forrest. Forrest's > site currently needs to be built with -Xmx128m because of this. I believe the > issue is originated at Cocoon's LinkRewriterTransformer or XMLFileModule. > A memory profiler shows lots (30MB+) of DOM DocumentImpls (150+ objects), which > get referenced by XMLFileModule.DocumentHelper. Their URIs are linkmap-xxx. > LinkRewriterTransformer#createTransformedLink(String) uses a InputModuleHelper, > which seems to reference a XMLFileModule. > ... > newLink = (String) modHelper.getAttribute(this.objectModel, > ^^^^^^^^^ > ... > The XMLFileModule keeps the visited documents in a map, which is where they > build up. > Just for testing, I changed XMLFileModule#getDocumentHelper(Configuration) from > this.documents.put(src, new DocumentHelper(reload, cache, src, this)); > to > return new DocumentHelper(reload, cache, src, this); > Thus, a new DocumentHelper is created every time, instead of caching them. The > result: No more memory problems, Apache Forrest's site builds again with -Xmx32. > Ron -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.