Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 86527 invoked from network); 12 May 2007 15:19:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2007 15:19:13 -0000 Received: (qmail 20491 invoked by uid 500); 12 May 2007 15:19:18 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 20469 invoked by uid 500); 12 May 2007 15:19:18 -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 20460 invoked by uid 99); 12 May 2007 15:19:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2007 08:19:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2007 08:19:11 -0700 Received: by wx-out-0506.google.com with SMTP id h29so1195669wxd for ; Sat, 12 May 2007 08:18:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cJV8lYNe8a2w+mCmCYlD9pR+HJzbdTWQ9aJf0J55hUg4QXpArkltu4DCaDRrsd0vjAHQRnkNRyUkUnM0fHhSE5y3SVjmUsFYDRyVEZLnUNScEY3LM9uHDSPtheF4Lh3e6LKG7mk9wPEeV92TL38eMqvBOPKMPeKgrxLZD8yiDz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DgjEfVY2V0WxWVcFOHbbhpNYARx83TaM6CjQmBkjaW31J5FPQAVp2dFJLDZWEl4ON30WJ3e0rlll5781z8TwAYpicUTplXVPMrNwyanPdZqXasTLM9RsJ4alLmtmMq/TVm0Ln/I/HxiM6iUL74LYl5FEb4lHnB5snfdFT4QdQt0= Received: by 10.90.106.11 with SMTP id e11mr3882016agc.1178983130979; Sat, 12 May 2007 08:18:50 -0700 (PDT) Received: by 10.90.105.5 with HTTP; Sat, 12 May 2007 08:18:50 -0700 (PDT) Message-ID: Date: Sat, 12 May 2007 08:18:50 -0700 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Activemq - out of memory problem In-Reply-To: <10429740.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10429740.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 5/11/07, fiwolfa wrote: > > Hi > > I use activemq inside servicemix 3.1 with mysql 5.0 (memor for servicemix is > set to 1GB). I set usageMemory limit to 128 MB and my messages are about 2mb > big. I put to my app many messages at the same time, about 25, they work > without any problem for few minutes but after that i get error: > ActiveMQMessage | error dispatchig message: java.lang.OutOfMemoryError: Java > heap space > > What can be the reason of that? I uploaded two config files activemq.xml and > tx.xml > Please help Some background.... http://activemq.apache.org/what-is-the-prefetch-limit-for.html I'd set your prefetch to something pretty small (say 2) if you are using such big messages (since by default the JMS client will keep in RAM a few thousand messages). Also run the ActiveMQ broker in a separate JVM then you know which JVM is actually running out of memory etc -- James ------- http://macstrac.blogspot.com/