Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 2644 invoked from network); 25 Jun 2008 10:35:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 10:35:43 -0000 Received: (qmail 66171 invoked by uid 500); 25 Jun 2008 10:35:44 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 66148 invoked by uid 500); 25 Jun 2008 10:35:44 -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 66137 invoked by uid 99); 25 Jun 2008 10:35:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 03:35:44 -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.145] (HELO n28.bullet.mail.ukl.yahoo.com) (87.248.110.145) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Jun 2008 10:34:52 +0000 Received: from [217.146.182.179] by n28.bullet.mail.ukl.yahoo.com with NNFMP; 25 Jun 2008 10:35:09 -0000 Received: from [87.248.110.109] by t5.bullet.ukl.yahoo.com with NNFMP; 25 Jun 2008 10:35:09 -0000 Received: from [127.0.0.1] by omp214.mail.ukl.yahoo.com with NNFMP; 25 Jun 2008 10:35:09 -0000 X-Yahoo-Newman-Id: 753230.45000.bm@omp214.mail.ukl.yahoo.com Received: (qmail 2690 invoked from network); 25 Jun 2008 10:35:09 -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=kg0zf3u1PgUnlfr+Z1kYX/EeTN/yR8wu4eObJ5QDoZkbE0lfjat+lZpE0oxDI544ZOZ66pRDvBplzbwD2b2TfglVGhvNDxN9i7Hc6WDKBKa2p/CEQXCxYsj0IBU188BLq28oP+GrGu6WcQMvbve+7WM75NiLUHkL0BcwOLk7jCk= ; Received: from unknown (HELO miqsbarriba) (sbarriba@83.244.197.164 with login) by smtp010.mail.ukl.yahoo.com with SMTP; 25 Jun 2008 10:35:09 -0000 X-YMail-OSG: ogVZ3_oVM1k87jXdMe7EWA0bQdTCsQ6rjZUHsJ3ff8.3NmyLleDkZh7Oj4p_6CjjTwfKfbv5gsBemFVUEZHpoVIK_02TZqVgJ6zWafXGgrpSCPnedhmQ4IaGxTxFnv7UaQEENbo41sGh7FnLmZNWoJ0- X-Yahoo-Newman-Property: ymail-3 From: "sbarriba" To: References: <0e2f01c8d6ac$876066a0$962133e0$@co.uk> In-Reply-To: Subject: RE: Locking issues with XAItemStateManager - help appreciated Date: Wed, 25 Jun 2008 11:35:01 +0100 Message-ID: <0e5a01c8d6af$24127770$6c376650$@co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcjWrH3r+yOeNsj3Txua8qSji9bPdgAAMHLQAABZ0kA= Content-Language: en-gb X-Virus-Checked: Checked by ClamAV on apache.org Hi Claus, Thanks for the quick response. We're not intentionally using an XA transaction. We're using Spring + Transaction Manager + Hibernate elsewhere to satisfy the request. ....so a few quick questions: * Is there a way to force JackRabbit not to use XA? What are the = alternative ItemStateManager(s)? * Does using XA cause more locking? Thanks in advance, Regards, Shaun -----Original Message----- From: K=D6LL Claus [mailto:C.KOELL@TIROL.GV.AT]=20 Sent: 25 June 2008 11:24 To: users@jackrabbit.apache.org Subject: AW: Locking issues with XAItemStateManager - help appreciated hi, do you use a xa transaction ? take a look @ https://issues.apache.org/jira/browse/JCR-1334 i see in your stack that the lock comes from acquireReadLock() this was also in my issue feel free do test the PatchedDefaultISMLocking.java by Marcel BR, claus -----Urspr=FCngliche Nachricht----- Von: sbarriba [mailto:sbarriba@yahoo.co.uk]=20 Gesendet: Mittwoch, 25. Juni 2008 12:16 An: users@jackrabbit.apache.org Betreff: Locking issues with XAItemStateManager - help appreciated Hi all, As follow up to a previous thread we're seeing lots and lots of = contention around the following lock. We're using Weblogic 9.1 / JRocket 27.4.0 = (1.5). =20 Even with very little load on the app a thread dump shows active threads = at exactly this point. As the concurrent load increases the contention increases until the app is continually thrashing on these locks and = stops responding. =20 Is there a way to configure JackRabbit to reduce the amount of locking? For example, I note the use of XAItemStateManager in the stack - is = there an alternative ItemStateManager implementation which requires less locking? =20 All help appreciated. =20 Regards, Shaun =20 =20 "[ACTIVE] ExecuteThread: '36' for queue: 'weblogic.kernel.Default (self-tuning)'" id=3D133 idx=3D0x20c tid=3D6426 prio=3D5 alive, in = native, daemon at = jrockit/vm/Locks.monitorEnterUnmatched(Ljava/lang/Object;)V(Native Method) at EDU/oswego/cs/dl/util/concurrent/WriterPreferenceReadWriteLock$ReaderLock= ..ac quire()V(Unknown Source) at org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.(De= fau ltISMLocking.java:103) at org/apache/jackrabbit/core/state/DefaultISMLocking$ReadLockImpl.(De= fau ltISMLocking.java:97) at org/apache/jackrabbit/core/state/DefaultISMLocking.acquireReadLock(Defaul= tIS MLocking.java:65) at org/apache/jackrabbit/core/state/SharedItemStateManager.acquireReadLock(S= har edItemStateManager.java:1438)[inlined] at org/apache/jackrabbit/core/state/SharedItemStateManager.getItemState(Shar= edI temStateManager.java:237)[optimized] at org/apache/jackrabbit/core/state/LocalItemStateManager.getPropertyState(L= oca lItemStateManager.java:118)[inlined] at org/apache/jackrabbit/core/state/LocalItemStateManager.getItemState(Local= Ite mStateManager.java:150)[inlined] at org/apache/jackrabbit/core/state/XAItemStateManager.getItemState(XAItemSt= ate Manager.java:226)[optimized] ^-- Holding lock: org/apache/jackrabbit/core/state/XAItemStateManager@0x3ea1ae88[thin = lock] at org/apache/jackrabbit/core/state/SessionItemStateManager.getItemState(Ses= sio nItemStateManager.java:175)[optimized] at org/apache/jackrabbit/core/ItemManager.createItemInstance(ItemManager.jav= a:5 64)[inlined] at org/apache/jackrabbit/core/ItemManager.getItem(ItemManager.java:395)[inli= ned ] at org/apache/jackrabbit/core/LazyItemIterator.prefetchNext(LazyItemIterator= ..ja va:90)[inlined] at org/apache/jackrabbit/core/LazyItemIterator.next(LazyItemIterator.java:20= 3)[ optimized] ^-- Holding lock: = org/apache/jackrabbit/core/ItemManager@0x3ea1a4c0[thin lock] =20