Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 24148 invoked from network); 21 Jun 2010 11:40:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 11:40:51 -0000 Received: (qmail 6683 invoked by uid 500); 21 Jun 2010 11:40:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 6432 invoked by uid 500); 21 Jun 2010 11:40:48 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 6424 invoked by uid 99); 21 Jun 2010 11:40:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 11:40:46 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 11:40:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5LBeMiO025586 for ; Mon, 21 Jun 2010 11:40:22 GMT Message-ID: <28301294.108421277120422687.JavaMail.jira@thor> Date: Mon, 21 Jun 2010 07:40:22 -0400 (EDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2647) Reduce temporary memory usage of hierarchy cache initialization In-Reply-To: <19413320.181491275653934606.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated JCR-2647: ---------------------------------- Attachment: JCR-2647.patch Attached patch limits the memory used while initializing the hierarchy cache to 64MB. Initializing the hierarchy cache of an index segment with two million nodes is now three times slower, but uses five times less memory. > Reduce temporary memory usage of hierarchy cache initialization > --------------------------------------------------------------- > > Key: JCR-2647 > URL: https://issues.apache.org/jira/browse/JCR-2647 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core > Affects Versions: 2.0.0, 2.1.0 > Reporter: Marcel Reutegger > Priority: Minor > Attachments: JCR-2647.patch > > > Initializing the hierarchy cache temporarily uses memory, which is linear to the size of the index segment. This process should be split into multiple phases to limit the memory usage to a fixed amount. > The temporary memory usage for an index segment current is about 170 bytes per node. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.