activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: Maximum message count when msg.size > 2.5mb
Date Tue, 14 Nov 2006 16:59:35 GMT
Hi,

Your analysis is correct.  Some work has started on the next release
4.2 to relax the restriction.  So in the next version it may be
possible to load up a queue with unlimited messages without blocking
the producer.

On 11/14/06, André Jager <andre.jager@spe-unna.de> wrote:
>
> This was indeed the problem. I changed the following entry in the
> activemq.xml
>
> <memoryManager>
>         <usageManager id="memory-manager" limit="41943040"/>
> </memoryManager>
>
> and see, I can store eight messages.
>
> conclusion:
>
> 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 <andre.jager@spe-unna.de> 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:
> >> http://www.nabble.com/Maximum-message-count-when-msg.size-%3E-2.5mb-tf2630054.html#a7339555
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Regards,
> > Hiram
> >
> > Blog: http://hiramchirino.com
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Maximum-message-count-when-msg.size-%3E-2.5mb-tf2630054.html#a7341482
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Mime
View raw message