Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 77351 invoked from network); 24 Jun 2008 10:21:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 10:21:12 -0000 Received: (qmail 47197 invoked by uid 500); 24 Jun 2008 10:21:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 47183 invoked by uid 500); 24 Jun 2008 10:21:11 -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 47172 invoked by uid 99); 24 Jun 2008 10:21:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 03:21:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [87.248.110.166] (HELO n33.bullet.mail.ukl.yahoo.com) (87.248.110.166) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Jun 2008 10:20:20 +0000 Received: from [217.146.182.180] by n33.bullet.mail.ukl.yahoo.com with NNFMP; 24 Jun 2008 10:20:37 -0000 Received: from [87.248.110.117] by t6.bullet.ukl.yahoo.com with NNFMP; 24 Jun 2008 10:20:37 -0000 Received: from [127.0.0.1] by omp222.mail.ukl.yahoo.com with NNFMP; 24 Jun 2008 10:20:37 -0000 X-Yahoo-Newman-Id: 288998.89914.bm@omp222.mail.ukl.yahoo.com Received: (qmail 48155 invoked from network); 24 Jun 2008 10:20:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=okPURbZIbPi0j0YBPAVXbPJZOTJGkZtFy7t7aGUbWsfElhO62A+HGRvEK9C/GvWI85zLUsbaGIrHPwZ2HdgCD5v9IeXS1lNpR419BifYMkc9Ljvmm9fLkSOMVI7P9YBn6aFGdqILXPoauI1OX23maVcdwFv/ChYDdliseHpiw+w= ; Received: from unknown (HELO miqsbarriba) (sbarriba@87.84.49.84 with login) by smtp009.mail.ukl.yahoo.com with SMTP; 24 Jun 2008 10:20:37 -0000 X-YMail-OSG: AapKL3UVM1l2U4qIPRmF.orXo4EgoEBqyo8fQNRdu1b6DfRkAosYjV26DDV9lDKKRE0MiqFv6HILPL6Xg.834NjLt_k9Q3IvlAELRYDKlmAfveIBUXu8gvgzMSdhmt_H8Q3yIE_WbIpa7qXo4JcbPf8- X-Yahoo-Newman-Property: ymail-3 From: "sbarriba" To: References: <08b601c8d5ce$8aed0eb0$a0c72c10$@co.uk> <4860C270.3050700@gmx.net> In-Reply-To: <4860C270.3050700@gmx.net> Subject: RE: Logging/Detecting slow JCR queries with Lucene Date: Tue, 24 Jun 2008 11:20:29 +0100 Message-ID: <097201c8d5e3$f1dc7ab0$d5957010$@co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcjV30J9ypzJIczuTtO/LoXssL6X3AABHM7w Content-Language: en-gb X-Virus-Checked: Checked by ClamAV on apache.org Thanks Marcel. We'll look at enabling this logging. Are there any tuning params we should be looking at to help with the performance in this area in the short term? Regards, Shaun -----Original Message----- From: Marcel Reutegger [mailto:marcel.reutegger@gmx.net] Sent: 24 June 2008 10:46 To: users@jackrabbit.apache.org Subject: Re: Logging/Detecting slow JCR queries with Lucene Hi, sbarriba wrote: > Hi all, > > Our application makes quite heavy use of JCR queries. We're seeing some > scenarios where the IO utilisation is very high for a period of time. A > thread dump of Tomcat shows lots and lots of threads locked waiting on > <0x781fe1d0> (a org.apache.lucene.store.FSDirectory$FSIndexInput which is > locked by the thread below. not sure, but this might be related to: https://issues.apache.org/jira/browse/JCR-1365 > Given we have 140+ queries being used, is there a way to configure > JackRabbit and/or Lucene to log out slow queries equivalent to the > "log-slow-queries" provided by MySql? when you enable debug log messages for org.apache.jackrabbit.core.query.QueryImpl you will see timing information as well as the query statement, though you'll have to post process that information because *all* queries will be logged, not just slow ones. regards marcel