activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Jager <>
Subject Re: Maximum message count when msg.size > 2.5mb
Date Tue, 14 Nov 2006 16:51:38 GMT

This was indeed the problem. I changed the following entry in the

        <usageManager id="memory-manager" limit="41943040"/>

and see, I can store eight messages.


I need to store up to a few hunderd of 2.5mb messages before the consumer
may become active again. I thought because I was using durable queues, the
messages are stored in the database and memory consumption would be kept to
a minimum. This is not true. Messages are kept in RAM for fast processing.

ActiveMQ is not devised being a large queue store. I changed the design. I
store the images on local disc with a GUID as file name and send this GUID
through ActiveMQ to the consumer. The consumer will use this message to read
the image from local disc and process it.

Hiram Chirino wrote:
> there is a 20 meg default memory limit that is enforce by the broker.
> If you want queue up more message in the brokers memory, you change
> it.
> On 11/14/06, André Jager <> wrote:
>> Hello,
>> I want to use ActiveMQ to store and forward jpg images. It is very
>> important
>> when the consumer is down, jpg images are accepted for processing.
>> However I
>> observed some strange behaviour and want to know if this behaviour is by
>> design.
>> I have a persistent, durable queue. I use ActiveMQ 4.0.2 and NMS as a
>> client. I am new to ActiveMQ but got it up and running very quickly.
>> When I send messages to the queue photo.raw and the consumer is down, the
>> send method will not return after the fourth (4th) message. Only after I
>> delete one message from the queue using HermesJMS, the send method
>> returns
>> to hang again on the next send. I cannot have more then four messages in
>> the
>> queue.
>> RAM is available, the processor is not busy.
>> As I read the forum I understood there is no real size limit on the queue
>> other then available resources. I looked around and could indeed not find
>> a
>> configuration parameter.
>> Can someone enlighten me on this issue?
>> --
>> View this message in context:
>> Sent from the ActiveMQ - User mailing list archive at
> -- 
> Regards,
> Hiram
> Blog:

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message