Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 65887 invoked from network); 5 Feb 2007 09:45:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2007 09:45:32 -0000 Received: (qmail 75655 invoked by uid 500); 5 Feb 2007 09:45:38 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 75633 invoked by uid 500); 5 Feb 2007 09:45:37 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 75624 invoked by uid 99); 5 Feb 2007 09:45:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 01:45:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Feb 2007 01:45:28 -0800 Received: (qmail invoked by alias); 05 Feb 2007 09:45:06 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.110]) [212.249.34.130] by mail.gmx.net (mp053) with SMTP; 05 Feb 2007 10:45:06 +0100 X-Authenticated: #894343 Message-ID: <45C6FCA0.3010905@gmx.net> Date: Mon, 05 Feb 2007 10:45:04 +0100 From: Marcel Reutegger User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: NodeIterator very slow References: <227621ad0702020538k251b9850r8786917acf2afe43@mail.gmail.com> <45C6F3E4.9090700@gmx.net> <227621ad0702050119s21e2e720g9416141d9df08c83@mail.gmail.com> In-Reply-To: <227621ad0702050119s21e2e720g9416141d9df08c83@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Sridhar Raman wrote: > I am executing an XPATH query. And I get the NodeIterator iter from the > QueryResult.getNodes(). This iter is the one causing the problem. Then I'd assume it's the query that takes a long time to execute. You can try the following configuration tweaks: - disable document order on the query result See: http://issues.apache.org/jira/browse/JCR-145 - set the paramter 'resultFetchSize' to a lower value if you don't need all 2000 nodes, but are only interested in the first few. please note however, that there are security concerns with this option: http://article.gmane.org/gmane.comp.apache.jackrabbit.devel/10103 > Could you tell me what I need to do to get a thread dump from a java > process? on unix: kill -QUIT on windows: Ctrl-Break in the console where you started the java process The thread dump is sent to the standard out of the java process. regards marcel