Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 1404 invoked from network); 22 Apr 2009 14:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 14:04:41 -0000 Received: (qmail 51083 invoked by uid 500); 22 Apr 2009 14:04:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 51006 invoked by uid 500); 22 Apr 2009 14:04:40 -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 50996 invoked by uid 99); 22 Apr 2009 14:04:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 14:04:40 +0000 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: local policy) Received: from [82.194.76.28] (HELO altiria.com) (82.194.76.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 14:04:31 +0000 Received: (qmail 21356 invoked from network); 22 Apr 2009 16:04:07 +0200 Received: from 213.37.154.24.static.user.ono.com (HELO ?192.168.22.125?) (213.37.154.24) by altiria.com with SMTP; 22 Apr 2009 16:04:07 +0200 Message-ID: <49EF23D6.5070906@altiria.com> Date: Wed, 22 Apr 2009 16:04:06 +0200 From: =?ISO-8859-1?Q?Diego_Rodr=EDguez_Mart=EDn?= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Journal files References: <49E85D67.70407@altiria.com> In-Reply-To: <49E85D67.70407@altiria.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi again, I'm really stuck on this as I need a response to set my production config. Is there any extra data I can give you to narrow the problem? Many thanks Diego Diego Rodr�guez Mart�n escribi�: > Hi all, > > I am planning to use ActiveMQ 5.2.0 in a project and I have made > some tests in a windows box to understand how the journal files work. > > I am defining a Journaled JDBC with postgres for persistence this way. > > > dataDirectory="${activemq.base}/data" dataSource="#postgres-ds"/> > > > Reading the docs, it seems that the journal files are used for > transaction log, and you can define how much files do you want and the > size of the files. ActiveMQ does not create new files, so it reuses > the old files. This is OK, but I was wondering what happens if the > queues (I am going to use only 2 queues) size increase long enough to > use all the files in the journal and need more space. It is not a > weird scenario, as we are decoupling consumer and producer and > consumer can sometines be offline due to maintenance routines. The > result is that journal files get overwritten, and many transactions > has been lost. When I start the consumer, it begins to consume > messages, but the JournalPersistenceAdapater fails everytime it has to > execute the checkpoint code: > > 2009-04-16 18:48:03,140 [eckpoint Worker] ERROR > JournalPersistenceAdapter - Failed to mark the Journal: > org.apache.activeio.journal.InvalidRecordLocationException: The > location is less than the last mark. > org.apache.activeio.journal.InvalidRecordLocationException: The > location is less than the last mark. > at > org.apache.activeio.journal.active.JournalImpl.setMark(JournalImpl.java:340) > > at > org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpoint(JournalPersistenceAdapter.java:416) > > at > org.apache.activemq.store.journal.JournalPersistenceAdapter$1.iterate(JournalPersistenceAdapter.java:121) > > at > org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > > at > org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > > > > I think the files are corrupted, can you confirm this? > Is the exception related to the problem described? > It is an expected behaviour? Should the maximum number of messages in > a queue be considered when configuring the journal? > > Thank you very much for your help. > -- ------------------------------------------------------------- Diego Rodr�guez Mart�n ALTIRIA TIC - Servicios SMS - Desarrollo Web http://www.altiria.com -------------------------------------------------------------