Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 50340 invoked from network); 4 Sep 2007 16:39:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 16:39:07 -0000 Received: (qmail 74311 invoked by uid 500); 4 Sep 2007 16:39:00 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 74283 invoked by uid 500); 4 Sep 2007 16:39:00 -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 74274 invoked by uid 99); 4 Sep 2007 16:39:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 09:39:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 16:39:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 18DB471420A for ; Tue, 4 Sep 2007 09:38:45 -0700 (PDT) Message-ID: <8306292.1188923925098.JavaMail.jira@brutus> Date: Tue, 4 Sep 2007 09:38:45 -0700 (PDT) From: "Przemo Pakulski (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1112) CacheManager interval between recalculation of cache sizes should be configurable In-Reply-To: <4905624.1188923567066.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Przemo Pakulski updated JCR-1112: --------------------------------- Attachment: JCR-1112.txt Attached simple patch which allows to set the interval programmatically, and change the default interval to 10 seconds. > CacheManager interval between recalculation of cache sizes should be configurable > --------------------------------------------------------------------------------- > > Key: JCR-1112 > URL: https://issues.apache.org/jira/browse/JCR-1112 > Project: Jackrabbit > Issue Type: New Feature > Components: core > Affects Versions: 1.4 > Reporter: Przemo Pakulski > Priority: Minor > Attachments: JCR-1112.txt > > > Currently interval between recaluclation of cahce size is hard coded to 1000 ms. Resizing/recalculation of cache size is quite expensive method (especially getMemoryUsed on MLRUItemStateCache is time consuming) > Depending on the configuration, we realized that under some load up to 10-15% percent of CPU time (profiler metrics) could be spend doing such recalculations. It does not seem to be needed to resize cache every second. Best this interval should be configurable in external config. file with other cache settings (like memory sizes). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.