Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 64849 invoked from network); 16 Aug 2005 13:37:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2005 13:37:25 -0000 Received: (qmail 70784 invoked by uid 500); 16 Aug 2005 13:37:20 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 70739 invoked by uid 99); 16 Aug 2005 13:37:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 06:37:18 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 6BD6CE6 for ; Tue, 16 Aug 2005 15:37:17 +0200 (CEST) Message-ID: <1906439776.1124199437440.JavaMail.jira@ajax.apache.org> Date: Tue, 16 Aug 2005 15:37:17 +0200 (CEST) From: "Edgar Poce (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Created: (JCR-188) Item states cached in UpdatableItemStateManager not discarded on logout Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Item states cached in UpdatableItemStateManager not discarded on logout ----------------------------------------------------------------------- Key: JCR-188 URL: http://issues.apache.org/jira/browse/JCR-188 Project: Jackrabbit Type: Improvement Components: core Reporter: Edgar Poce Priority: Minor The SessionItemStateManager disposes only the TransientItemStateManager but not the UpdatableItemStateManager. The latter doesn't release the resources and the cached items keep listening the overlayed state events until the ReferenceMap do its magic. According to my tests in certain circumstances it slows down jackrabbit very much. In the charts you can see the time it takes to jackrabbit to save each child node. The first test uses a single session and the second creates a new session for each added node. The patch I attach makes both tests take the same time. Opinions? 05-08-16-one session.GIF / login / loop / add node / save / logout 05-08-16-one session per save.GIF / loop / login / add node / save / logout -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira