Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F0F36AD2 for ; Tue, 2 Aug 2011 15:15:51 +0000 (UTC) Received: (qmail 75505 invoked by uid 500); 2 Aug 2011 15:15:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 75237 invoked by uid 500); 2 Aug 2011 15:15:50 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 75223 invoked by uid 99); 2 Aug 2011 15:15:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 15:15:49 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 15:15:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CE4B9A7F1 for ; Tue, 2 Aug 2011 15:15:27 +0000 (UTC) Date: Tue, 2 Aug 2011 15:15:27 +0000 (UTC) From: "Hariharan (JIRA)" To: dev@activemq.apache.org Message-ID: <1414961992.1669.1312298127508.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1378168529.18192.1311933190219.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3424) AMQ data dir not cleaning up even after messages getting consumed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076257#comment-13076257 ] Hariharan commented on AMQ-3424: -------------------------------- The files were not getting deleted as they had not reached the journalMaxFileLength I had specified. I tried the test cases with a smaller value and it worked. 5.5 is working just fine. Closing this issue. > AMQ data dir not cleaning up even after messages getting consumed. > ------------------------------------------------------------------ > > Key: AMQ-3424 > URL: https://issues.apache.org/jira/browse/AMQ-3424 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Reporter: Hariharan > Attachments: TestFile.xml, TestListener.java, TestMessageProducer.java > > > Hi, > We are using ActiveMQ 5.3 (in UNIX) and use both queues and topics (durable and non-durable). > The messages are published by the publishers in persistent delivery and auto acknowledge mode. > I can see that the consumers are actively able to consume the messages. > However, even after the messages getting consumed successfully, the data dir size is not coming down. > I tried : > 1. Using both amqPersistenceAdapter and kahaDB. > 2. Upgrading the AMQ to 5.5 > But none of them is bringing down its size. > snapshot: > {code:xml} > *After starting the broker.* > du -h activemq_data_kahadb ; ls -l /activemq_data_kahadb > 48K /activemq_data_kahadb > total 44 > -rw-rw-r-- 1 manih manih 9961472 Jul 29 05:06 db-1.log > -rw-rw-r-- 1 manih manih 12288 Jul 29 05:06 db.data > -rw-rw-r-- 1 manih manih 12304 Jul 29 05:06 db.redo > -rw-rw-r-- 1 manih manih 0 Jul 29 05:04 lock > *After messages getting delivered.* > du -h /activemq_data_kahadb ; ls -l /activemq_data_kahadb > 1.7M /activemq_data_kahadb > total 1652 > -rw-rw-r-- 1 manih manih 9961472 Jul 29 05:24 db-1.log > -rw-rw-r-- 1 manih manih 364544 Jul 29 05:24 db.data > -rw-rw-r-- 1 manih manih 332416 Jul 29 05:24 db.redo > -rw-rw-r-- 1 manih manih 0 Jul 29 05:04 lock > {code} > Here are my config details: > {code:xml} > > > > > > > > > > > > > > > > > {code} > I do understand that the messages are persisted until consumed by the consumers, but after that shouldn't the file size be coming down? > Please let me know if there are any config changes that I need to do to get this working fine. > Thanks in advance > Hari -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira