Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 11890 invoked from network); 23 Nov 2009 16:03:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 16:03:03 -0000 Received: (qmail 28552 invoked by uid 500); 23 Nov 2009 16:03:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 28520 invoked by uid 500); 23 Nov 2009 16:03:02 -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 28512 invoked by uid 99); 23 Nov 2009 16:03:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 16:03:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 16:03:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B4B7C234C1EE for ; Mon, 23 Nov 2009 08:02:39 -0800 (PST) Message-ID: <818357410.1258992159739.JavaMail.jira@brutus> Date: Mon, 23 Nov 2009 16:02:39 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2402) Observation: avoid running out of memory In-Reply-To: <861775442.1258992159623.JavaMail.jira@brutus> 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-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mueller updated JCR-2402: -------------------------------- Priority: Minor (was: Major) > Observation: avoid running out of memory > ---------------------------------------- > > Key: JCR-2402 > URL: https://issues.apache.org/jira/browse/JCR-2402 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core, observation > Reporter: Thomas Mueller > Assignee: Thomas Mueller > Priority: Minor > > Jackrabbit uses an unbounded observation queue for event listeners (for asynchronous listeners, which are the default). If an observation listener is very slow, the observation queue gets larger and larger, and the JVM will eventually run out of memory. > I suggest to use a maximum queue size of 100'000 by default. Adding new events to the queue will block until the observation listeners removed an item. I'm not sure if we need a way to configure this option; probably a system property is enough as a start (we can still add a better way to configure this setting if it turns out somebody actually needs a different value). > A special case is observation listeners that themselves write to the repository and therefore cause new events. In this case, it doesn't make sense to block adding an event, because that would block the whole system. However a warning should be written to the log file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.