Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 70648 invoked from network); 2 Apr 2007 15:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 15:44:32 -0000 Received: (qmail 95736 invoked by uid 500); 2 Apr 2007 15:44:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 95712 invoked by uid 500); 2 Apr 2007 15:44:39 -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 95703 invoked by uid 99); 2 Apr 2007 15:44:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 08:44:39 -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.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 08:44:30 -0700 Received: by wx-out-0506.google.com with SMTP id h29so1302099wxd for ; Mon, 02 Apr 2007 08:44:09 -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=mRQjKfos6gIKqbEjDNi+yojCMffk+1e40n7tRa5fRis2eAOgNJmuEv6Thh0Q/aIwGsbXerD2WA+/M1/u7ntjAmF1gerHXnGSUf+hU3ZR7QjYJcE/yvjzw3WQ3cKNHZBw8jvYbPc1mWChvSFd+sTJdvPJrdkM027wadc977pXfmU= 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=RTupyjNuD0wo5KjWKfwaVvTYtM6kUbcxuPP0W83jSpGJnLuJ/4L/abdq7IIwcpUI3s3gf+4fooUHXpb4WRz2GLXQj/R+O90RI6TR7wkv7ir9VDmzOSg1RtMEcUQw7RoRDtu0/OCoMe4no07UnzjQtqPieqSfrUsN6FDDIFQZKOM= Received: by 10.90.100.2 with SMTP id x2mr3382256agb.1175528649701; Mon, 02 Apr 2007 08:44:09 -0700 (PDT) Received: by 10.90.51.6 with HTTP; Mon, 2 Apr 2007 08:44:09 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 16:44:09 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: JDBC Persistance In-Reply-To: <6B610AB57E31514E87F9DF80F8EA6AA1017CADAF@dc01.transerainc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6B610AB57E31514E87F9DF80F8EA6AA1017CADAF@dc01.transerainc.com> X-Virus-Checked: Checked by ClamAV on apache.org There is a lag if using the journal based on the journal checkpoint time; so using pure JDBC and no journal will use less disk (though be much slower). Also there is a further lag if you are using durable topics (since the deletion of messages is a background task). You might want to use queues if you want more immediate deletion & freeing of resources. Finally using AMQStore in 4.2 should use less disk space than a JDBC database. On 4/2/07, Ramesh Bobba wrote: > Hi James, > > I do want to use persistent delivery. The problem I am seeing is the > messages from the persistent store are not being deleted fast enough. My > disk is getting full. Is there any way to control this? Do you think > setAsyncSend(true) will help? > > > Thanks, > > > Ramesh. > > -----Original Message----- > From: James Strachan [mailto:james.strachan@gmail.com] > Sent: Monday, April 02, 2007 1:27 AM > To: users@activemq.apache.org > Subject: Re: JDBC Persistance > > On 4/1/07, Ramesh Bobba wrote: > > I have three producers producing 80K messages every 2 seconds, I have > > three consumers subscribed as durable consumers. I am using mysql as > > persistence. What I see is that the messages are being written to the > > database even when all the subscribers are up. > > > > I thought that broker > > only writes to the datasource if it has to. > > It does > > If you don't want persistence to take place, don't use persistent > delivery. > http://cwiki.apache.org/ACTIVEMQ/what-is-the-difference-between-persiste > nt-and-non-persistent-delivery.html > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > -- James ------- http://radio.weblogs.com/0112098/