activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juraj Kuruc (JIRA)" <>
Subject [jira] Commented: (AMQ-1797) persistent messages for durable subscribers are not purged from disc storage
Date Wed, 25 Feb 2009 12:54:00 GMT


Juraj Kuruc commented on AMQ-1797:

Tests on amq revision number 729038 with amqPersistenceAdapter as well as with kahaPersistenceAdapter
but none of them was sucessful
from different reasons.

With amqPersistenceAdapter, 100k msgs have been sent and data directory size is 1.1 GB. 
Further message sending make any difference - message store still grows. For addition following
error occures several times:
ERROR RecoveryListenerAdapter        - Message id ... could not be recovered from the data
store - already dispatched

Using kahaPersistenceAdapter, after 100k msgs one of the consumer receives 100k second 99999
msgs.After another 300k msgs data directory size is 410MB. Also some errors are logged by

ERROR DataManagerImpl                - Looking for key 15 but not found in fileMap: {17=data-queue-data-17
number = 17 , length = 177868 refCount = 6, 16=data-queue-data-16 number = 16 , length = 33546816
refCount = 86}
ERROR MapContainerImpl               - Failed to get value for offset=4845, key=(15, 29641420,
47), value=(15, 29641472, 8839), previousItem=-1, nextItem=-1 Could not locate data file data-queue-data-15
        at org.apache.activemq.kaha.impl.container.MapContainerImpl.getValue(
        at org.apache.activemq.thread.DeterministicTaskRunner.runTask(
        at org.apache.activemq.thread.DeterministicTaskRunner$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
ERROR AbstractStoreCursor            - Failed to fill batch for more see atached log - kaha_amq.log

For this tests it was necessary to adjust memory usage and limit settings - view attached
Tested on SUSE Linux Enterprise Server 10.

> persistent messages for durable subscribers are not purged from disc storage
> ----------------------------------------------------------------------------
>                 Key: AMQ-1797
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.1.0
>         Environment: WinXP,
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
>            Reporter: Juraj Kuruc
>            Assignee: Rob Davies
>             Fix For: 5.3.0
>         Attachments:,, textMessageFile.txt,,
> I have some problems with multiple durable subscribers while persistent delivery is used.
> Message should be deleted from disc storage (periodically) after all interested subscribers
have received it. In case there was one durable subscriber everything woks just fine. However
when I tested this scenerio with two durable subscribers on topic,  the messages were never
deleted (disc usage is continously consumed and never purged). 
> Test case description:
> -using default activemq.xml configuration file from binary distribution 
> creates two separetes durable consumers
> -textMessageFile.txt is file which text is sent by producer (place it on classpath)
> Result:
> -all messages there were send were also received by both subscribers
> -after more then 100k messages data directory is about 1GB. 
> -restarting activemq with so big persistent storage takes very long time

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message