jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Logging/Detecting slow JCR queries with Lucene
Date Tue, 24 Jun 2008 09:46:24 GMT

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: 

> 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.


View raw message