You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by iceball12 <ic...@hotmail.com> on 2011/08/25 17:50:49 UTC

NMS producer slow

NMS 1.1.0.1642 and activemq 5.4.1

Sometimes when producer messages to a queue it takes a long time for the
message is actually enqueued.

The weird thing is that when i produce multiple messages to the same queue
quickly then all messages are enqueued quickly
the Delay is only when 1 message is enqueued and then for a while nothing is
enqueued.

I have used default settings for the broker, and no special settings for the
connectionfactory in nms.

Also the messages always seem to be consumed by the same consumer, even
though this queue has 4 consumers, the same one gets all messages.
Another queue with consumers from the same source does consume evenly over
the 4 consumer per queue.
Might this indicate some problem with either the queue or the broker
settings?
Is there anything that could force delay in enqueuing but does enqueue quick
for more then 1 message in a short period of time?


--
View this message in context: http://activemq.2283324.n4.nabble.com/NMS-producer-slow-tp3768632p3768632.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: NMS producer slow

Posted by iceball12 <ic...@hotmail.com>.
updating to 1.5.1 did not help, although it was extremely old version, no
idea where i got that :)

--
View this message in context: http://activemq.2283324.n4.nabble.com/NMS-producer-slow-tp3768632p3768702.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: NMS producer slow

Posted by iceball12 <ic...@hotmail.com>.
but the queue is empty when the producer tries to enqueue a message.
So drainage problems should not be effecing producer when there is nothing
to consume at the moment of the producer trying to enqueue right?

--
View this message in context: http://activemq.2283324.n4.nabble.com/NMS-producer-slow-tp3768632p3768679.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: NMS producer slow

Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2011-08-25 at 08:50 -0700, iceball12 wrote:
> NMS 1.1.0.1642 and activemq 5.4.1
> 

That version of NMS is extrememly old, you'd be wise to update to the
latest release 1.5.1 of the NMS.ActiveMQ lib.

> Sometimes when producer messages to a queue it takes a long time for the
> message is actually enqueued.
> 
> The weird thing is that when i produce multiple messages to the same queue
> quickly then all messages are enqueued quickly
> the Delay is only when 1 message is enqueued and then for a while nothing is
> enqueued.
> 
> I have used default settings for the broker, and no special settings for the
> connectionfactory in nms.
> 
> Also the messages always seem to be consumed by the same consumer, even
> though this queue has 4 consumers, the same one gets all messages.
> Another queue with consumers from the same source does consume evenly over
> the 4 consumer per queue.
> Might this indicate some problem with either the queue or the broker
> settings?
> Is there anything that could force delay in enqueuing but does enqueue quick
> for more then 1 message in a short period of time?
> 

If producer flow control is enabled and your queue is not being drained
fast enough then it could affect the producer.  You can lower the
prefetch value for the consumers so that the messages are spread evenly
amongst them, try using a value of 1 for prefetch.

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/