Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 57992 invoked from network); 1 May 2008 05:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 05:30:56 -0000 Received: (qmail 79437 invoked by uid 500); 1 May 2008 05:30:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 79414 invoked by uid 500); 1 May 2008 05:30:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 79403 invoked by uid 99); 1 May 2008 05:30:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 22:30:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 05:30:10 +0000 Received: by ug-out-1314.google.com with SMTP id k3so1399045ugf.5 for ; Wed, 30 Apr 2008 22:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=I1RQlpQjyzwpGozkrzjDGhbI95trK7bZes8uTnrbS8Y=; b=V3yOodsi/Z8dx0jnqIg7SeOKTr3hnB8fumZO/d3JLcjZpc4y5vyrBuMW2eCs43lfJ3sUrrBAHzLQPqbZBqn97RmzbEGco7c2ON9Wt+XwXK7/JZPLI4pSJPQuobyrl+Dq0XNXSy5YEAnYK+glBccS9PT0CL4JWRPdrKrOcirGZgw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=FGy3KWxr4kUous2aGDZ9vHldseZnl7l0mPnB9GirnltAABRDJamwjIqMU+UBa4As5sizKYWexTHLPJuV09IA+67OfA8YHpyxC3Kjq5gSOXpp0l+SZ5Qy6WT+8kvs0VxOQCB+o0A5jwfl+75bqTWA/SYMlguQ4mGmRaQ9OctnVGU= Received: by 10.66.242.5 with SMTP id p5mr8943906ugh.87.1209619822391; Wed, 30 Apr 2008 22:30:22 -0700 (PDT) Received: from ?192.168.1.82? ( [81.132.70.76]) by mx.google.com with ESMTPS id g17sm2682606nfd.3.2008.04.30.22.30.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Apr 2008 22:30:21 -0700 (PDT) Message-Id: From: Rob Davies To: users@activemq.apache.org In-Reply-To: <4818FA6B.70507@hanik.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: OOME - ActiveMQMessageConsumer.unconsumedMessages Date: Thu, 1 May 2008 06:30:19 +0100 References: <4818FA6B.70507@hanik.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On 1 May 2008, at 00:02, Filip Hanik - Dev Lists wrote: > There doesnt seem to be a way of limiting how messages are delivered > to the client. > the ActiveMQMessageConsumer.unconsumedMessages seems to fill up, all > to quickly, and eventually cause an OOME > > we have this setting on the server > > > memoryLimit="10mb"> > > processNonPersistent="false" /> > > > > > > > > > > > is there another setting to protect against this kind of OOME > > Filip Hi Filip, You can override how many messages are delivered to a consumer by setting its prefetch limit - see the FAQ entry - http://activemq.apache.org/what-is-the-prefetch-limit-for.html cheers, Rob http://open.iona.com/ -Enterprise Open Integration http://rajdavies.blogspot.com/