Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 37332 invoked from network); 27 Aug 2008 11:12:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 11:12:46 -0000 Received: (qmail 91139 invoked by uid 500); 27 Aug 2008 11:12:44 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 90930 invoked by uid 500); 27 Aug 2008 11:12:44 -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 90917 invoked by uid 99); 27 Aug 2008 11:12:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 04:12:44 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 72.14.246.240 as permitted sender) Received: from [72.14.246.240] (HELO ag-out-0708.google.com) (72.14.246.240) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 11:11:44 +0000 Received: by ag-out-0708.google.com with SMTP id 8so6402547agc.0 for ; Wed, 27 Aug 2008 04:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=DNmKSs51czyezYeciIzdbLias9xloHxYd59TJWkjAYg=; b=PQAHwwmtV8LOL/LfjFpaURlegm3H025BucHvysKngWT+MHqLFTGSCphkTTl4QZbqX4 JL7HhE7vS/AaxLl3YhXAUR7z8ddytmHcDONjTprm95WIOpLjqgxJqP//w2MSBnG9Bbtd XACCIkp5KuDFOVTLa2rZ7k0astylGjEmP2DkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kERb2nbP2PFlhBsODrJ+X498F+c8NEZvLIMzwuAJhuXFSJffKTD1znu1yQaiLKWshe PveQ0ohkXqE9sce1p3s7A0rZpOHHCe5GxnY5/kc1b+39AZcC29z4IPoFU/gF7tA2u45I RjqeIEKTt6JsWei4+o6F4t9tGzLo/NZpkA3D4= Received: by 10.90.30.2 with SMTP id d2mr8677865agd.118.1219835523947; Wed, 27 Aug 2008 04:12:03 -0700 (PDT) Received: by 10.90.117.12 with HTTP; Wed, 27 Aug 2008 04:12:03 -0700 (PDT) Message-ID: Date: Wed, 27 Aug 2008 12:12:03 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Out of memory exception in ActiveMQ In-Reply-To: <19178729.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <19176596.post@talk.nabble.com> <19178729.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Try increase your heap; as a broker and mule server and JMS client is gonna use up RAM. To reduce the memory overhead of the JMS client you can reduce the prefetch... http://activemq.apache.org/what-is-the-prefetch-limit-for.html the out of the box broker config should be fine but if you're really short of RAM you can reduce the usageManager settings 2008/8/27 Manupriya : > > Hi, > We are using following - > > 1. ActiveMQ 5.1 > 2. I have not set JVM heap to any value. > 3. We are running a mule server. > 4. Both the consumer and broker are using the same JVM. > > Thanks, > Manu > > > James.Strachan wrote: >> >> Which version are you using? What did you set your JVM heap to? Which >> JVM got the OOM exception, the broker or the consumer? >> >> This document helps you get better help quicker >> http://activemq.apache.org/support.html >> >> 2008/8/27 Manupriya : >>> >>> Hi, >>> >>> We have the following requirement - >>> >>> 1. We read a flat file that has around 2 million rows. >>> 2. For each row we do some processing and create a JMS message and put it >>> in >>> an ActiveMQ topic. >>> 3. We have a consumer that consumes each of there messages and then does >>> some processing. >>> 4. We need the topic to be able to handle around 2 million messages. >>> >>> I am getting memory out of bound exception after 30000 messages are >>> created >>> and put on the topic. >>> >>> We are assuming, as there are only one consumer for the topic, messages >>> should be removed from the topic once it is consumed. >>> >>> Thanks, >>> Manupriya >>> -- >>> View this message in context: >>> http://www.nabble.com/Out-of-memory-exception-in-ActiveMQ-tp19176596p19176596.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> James >> ------- >> http://macstrac.blogspot.com/ >> >> Open Source Integration >> http://open.iona.com >> >> > > -- > View this message in context: http://www.nabble.com/Out-of-memory-exception-in-ActiveMQ-tp19176596p19178729.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com