Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 11627 invoked from network); 15 Aug 2007 07:17:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2007 07:17:52 -0000 Received: (qmail 77343 invoked by uid 500); 15 Aug 2007 07:17:49 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 77313 invoked by uid 500); 15 Aug 2007 07:17:49 -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 77304 invoked by uid 99); 15 Aug 2007 07:17:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 00:17:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 07:17:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66D06714191 for ; Wed, 15 Aug 2007 00:17:30 -0700 (PDT) Message-ID: <6120802.1187162250405.JavaMail.jira@brutus> Date: Wed, 15 Aug 2007 00:17:30 -0700 (PDT) From: "Christoph Kiehl (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1041) Avoid using BitSets in ChildAxisQuery to minimize memory usage In-Reply-To: <29008270.1185808672964.JavaMail.jira@brutus> 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/JCR-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christoph Kiehl resolved JCR-1041. ---------------------------------- Resolution: Fixed Fix Version/s: 1.4 Added suggested patch with additional license headers in revision 566042 > Avoid using BitSets in ChildAxisQuery to minimize memory usage > -------------------------------------------------------------- > > Key: JCR-1041 > URL: https://issues.apache.org/jira/browse/JCR-1041 > Project: Jackrabbit > Issue Type: Improvement > Components: query > Affects Versions: 1.3 > Reporter: Christoph Kiehl > Assignee: Christoph Kiehl > Fix For: 1.4 > > Attachments: avoid_using_bitsets.patch > > > When doing ChildAxisQueries on large indexes the internal BitSet instance (hits) may consume a lot of memory because the BitSet is always as large as IndexReader.maxDoc(). In our case we had a query consisting of 7 ChildAxisQueries which combined to a total of 14MB. Since we have multiple users executing this query simultaneously this caused an out of memory error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.