Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 193D49D9B for ; Mon, 27 Feb 2012 06:43:14 +0000 (UTC) Received: (qmail 78928 invoked by uid 500); 27 Feb 2012 06:43:13 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 78840 invoked by uid 500); 27 Feb 2012 06:43:13 -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 78810 invoked by uid 99); 27 Feb 2012 06:43:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 06:43:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 06:43:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CA30E1BDAD9 for ; Mon, 27 Feb 2012 06:42:48 +0000 (UTC) Date: Mon, 27 Feb 2012 06:42:48 +0000 (UTC) From: "Christian Stocker (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <2024570817.22352.1330324968829.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <442973473.22339.1330324849037.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3244) CPU Load issue with 2.3.6 and 2.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-3244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217069#comment-13217069 ] Christian Stocker commented on JCR-3244: ---------------------------------------- And here's the dump by Lukas: http://pastie.org/private/jyorgp7qyhchckiyfzja > CPU Load issue with 2.3.6 and 2.4.0 > ----------------------------------- > > Key: JCR-3244 > URL: https://issues.apache.org/jira/browse/JCR-3244 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-server > Reporter: Christian Stocker > > We discovered an issue with adding and removing references to a Weak Reference Multi-Value property > within the same session, which leads to running 100% CPU . > In PHPCR/Jackalope, I do the following: > *** > // remove the weakreference property if one was there > $m->setProperty("refs",null); > $session->save(); > //add some references > $m->setProperty("refs",$refs,10); > $session->save(); > //remove one and set the others again > array_pop($refs); > $m->setProperty("refs",$refs,10); > $session->save(); > *** > If I do the last setProperty() with a new session, then it works. > On the HTTP level it looks like this: > https://gist.github.com/1869626 > The last REPORT (where we try to resolve the UUID to a path), it hangs. > According to Jukka, the problem is the following: > *** > Yep. From the thread dump posted by Lukas it looks like the culprit > here is the appliesToResource() lock computation done by the > TxLockManagerImpl class in jackrabbit-webdav. The method makes a wrong > assumption about the return value of the Text.getRelativeParent() > utility method, and ends up in an infinite loop. > *** -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira