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 0A25D9D71 for ; Mon, 27 Feb 2012 06:41:37 +0000 (UTC) Received: (qmail 76009 invoked by uid 500); 27 Feb 2012 06:41:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 75460 invoked by uid 500); 27 Feb 2012 06:41:17 -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 75011 invoked by uid 99); 27 Feb 2012 06:41:14 -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:41:14 +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:41:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6980B1BD9F4 for ; Mon, 27 Feb 2012 06:40:50 +0000 (UTC) Date: Mon, 27 Feb 2012 06:40:50 +0000 (UTC) From: "Christian Stocker (Updated) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <593403272.22349.1330324850433.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <442973473.22339.1330324849037.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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:all-tabpanel ] Christian Stocker updated JCR-3244: ----------------------------------- Description: 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. *** was: 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: {noformat} // 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(); {noformat} 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: {quote} 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. {quote} > 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